Skip to content

Commit

Permalink
add HEXDUMP test
Browse files Browse the repository at this point in the history
  • Loading branch information
zTrix committed Sep 25, 2020
1 parent dc4ac99 commit 854b5c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test2/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def test_encoding(self):
self.assertEqual(EVAL(b'xx\\x33'), b'xx\x33')
self.assertEqual(EVAL(b'\\\\x\\tx\\xf1\\r\\n'), b'\\x\tx\xf1\r\n')

self.assertEqual(HEXDUMP(b'_' * 16 + b'abcde'), b'00000000: 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f ________________\n00000010: 6162 6364 65 abcde\n')

# ------------------- SocketIO Tests ---------------------

def test_socket_io(self):
Expand Down
2 changes: 2 additions & 0 deletions test3/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def test_encoding(self):
self.assertEqual(EVAL(b'xx\\x33'), b'xx\x33')
self.assertEqual(EVAL(b'\\\\x\\tx\\xf1\\r\\n'), b'\\x\tx\xf1\r\n')

self.assertEqual(HEXDUMP(b'_' * 16 + b'abcde'), b'00000000: 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f 5f5f ________________\n00000010: 6162 6364 65 abcde\n')

# ------------------- SocketIO Tests ---------------------

def test_socket_io(self):
Expand Down

0 comments on commit 854b5c0

Please sign in to comment.