SevdanurGenc's picture
Upload 300 files
9438a57 verified
Raw History Blame Contribute Delete
2.02 kB
# This file is part of Pynguin.
#
# SPDX-FileCopyrightText: 2019–2026 Pynguin Contributors
#
# SPDX-License-Identifier: MIT
#
# This file was automatically generated using Pynguin.
import pytest
import sys
import solution
solution_ = sys.modules["solution"]
from solution import (
Counter,
TR_LOWER,
caesar,
is_palindrome,
re,
tr_lower,
truncate,
word_frequencies,
)
def test_0():
var_0 = "\\-J{"
var_1 = solution_.is_palindrome(text=var_0)
assert var_1 is True
def test_1():
var_51 = ""
solution_.word_frequencies(text=var_51)
def test_2():
var_0 = solution_.tr_lower(text="\\w+")
var_1 = "3"
var_2 = solution_.is_palindrome(text=var_1)
assert var_2 is True
var_4 = 1
var_5 = solution_.caesar(text=var_0, shift=var_4)
assert var_5 == "\\x+"
def test_3():
var_51 = "h"
solution_.word_frequencies(text=var_51)
def test_4():
var_1 = -1101
var_49 = "{Bimk4fjW"
var_50 = solution_.caesar(text=var_49, shift=var_1)
assert var_50 == "{Szdb4waN"
var_51 = "h"
solution_.word_frequencies(text=var_51)
def test_5():
var_55 = 8
var_56 = solution_.truncate(text="<\n4{ rzk<7QdXn)m", limit=var_55, suffix="i-4")
assert var_56 == "<\n4{i-4"
var_43 = solution_.word_frequencies(text=var_56)
var_61 = 3647
solution_.truncate(text=var_43, limit=var_61)
def test_6():
var_42 = "{#*%#@;.Q"
solution_.word_frequencies(text=var_42)
var_45 = solution_.is_palindrome(text=var_42)
assert var_45 is True
with pytest.raises(ValueError):
solution_.truncate(text=var_42, limit=var_45)
def test_7():
var_0 = solution_.tr_lower(text="j*6=")
var_8 = "\x0b?"
var_9 = solution_.is_palindrome(text=var_8)
assert var_9 is False
var_12 = solution_.caesar(text=var_0, shift=-1546)
assert var_12 == "x*6="
def test_8():
var_59 = "n"
var_60 = 0
with pytest.raises(ValueError):
solution_.word_frequencies(text=var_59, top=var_60)