Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Agent-Hellboy committed Oct 14, 2023
1 parent 059fb0e commit c3deff9
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions integration_tests/test_str_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ def test_str_slice():
# assert a[0:5:-1] == ""


def test_str_istitle():
a: str = "Hello World"
b: str = "Hj'kl"


def test_str_title():
a: str = "hello world"
b: str = "hj'kl"
c: str = "hELlo wOrlD"
d: str = " Hello"
e: str = " "
res: bool = a.istitle()
res2: bool = b.istitle()
res3: bool = c.istitle()
res4: bool = d.istitle()
res5: bool = e.istitle()
assert res == True
assert res2 == False
assert res3 == False
assert res4 == True
assert res5 == False
d: str = "{Hel1o}world"
res: str = a.title()
res2: str = b.title()
res3: str = c.title()
res4: str = d.title()
assert res == "Hello World"
assert res2 == "Hj'Kl"
assert res3 == "Hello World"
assert res4 == "{Hel1O}World"


def test_str_repeat():
a: str
Expand Down Expand Up @@ -107,7 +107,5 @@ def check():
test_str_join_empty_list()
test_constant_str_subscript()
test_str_title()
test_str_istitle()
test_str_isalpha()

check()

0 comments on commit c3deff9

Please sign in to comment.