Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gerzse committed Jul 3, 2024
1 parent 72dfc2f commit 640d80b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def test_none(reader):

def test_set(reader):
reader.feed(b"~3\r\n+tangerine\r\n_\r\n,10.5\r\n")
assert {b"tangerine", None, 10.5} == reader.gets()
assert [b"tangerine", None, 10.5] == reader.gets()

def test_set_with_nested_dict(reader):
reader.feed(b"~2\r\n+tangerine\r\n%1\r\n+a\r\n:1\r\n")
assert [b"tangerine", {b"a": 1}] == reader.gets()

def test_dict(reader):
reader.feed(b"%2\r\n+radius\r\n,4.5\r\n+diameter\r\n:9\r\n")
Expand Down

0 comments on commit 640d80b

Please sign in to comment.