File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ def test_concat_TypeError():
6565
6666def test_repeat_zero ():
6767 result = cstring ('hello' ) * 0
68- assert str ( result ) == str ( cstring ('' )) # TODO: implement cstring equality!
68+ assert result == cstring ('' )
6969
7070
7171def 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
7676def test_item_IndexError_too_small ():
@@ -81,7 +81,7 @@ def test_item_IndexError_too_small():
8181def 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
8787def test_item_IndexError_too_big ():
@@ -92,7 +92,7 @@ def test_item_IndexError_too_big():
9292def 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
9898def test_contains_True ():
You can’t perform that action at this time.
0 commit comments