Skip to content

Commit 84a8506

Browse files
committed
Fix test TODOs
1 parent e0dbf9e commit 84a8506

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_cstring.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ def test_concat_TypeError():
6565

6666
def test_repeat_zero():
6767
result = cstring('hello') * 0
68-
assert str(result) == str(cstring('')) # TODO: implement cstring equality!
68+
assert result == cstring('')
6969

7070

7171
def test_repeat_five():
7272
result = cstring('hello') * 5
73-
assert str(result) == str(cstring('hellohellohellohellohello')) # TODO: implement cstring equality!
73+
assert result == cstring('hellohellohellohellohello')
7474

7575

7676
def test_item_IndexError_too_small():
@@ -81,7 +81,7 @@ def test_item_IndexError_too_small():
8181
def test_item_ok_neg():
8282
result = cstring('hello')[-5]
8383
assert isinstance(result, cstring)
84-
assert str(result) == str(cstring('h')) # TODO: implement cstring equality!
84+
assert result == cstring('h')
8585

8686

8787
def test_item_IndexError_too_big():
@@ -92,7 +92,7 @@ def test_item_IndexError_too_big():
9292
def test_item_ok_pos():
9393
result = cstring('hello')[4]
9494
assert isinstance(result, cstring)
95-
assert str(result) == str(cstring('o')) # TODO: implement cstring equality!
95+
assert result == cstring('o')
9696

9797

9898
def test_contains_True():

0 commit comments

Comments
 (0)