From 19a2b98c81406b5bcacb02578a51276dd1224c63 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Wed, 26 Jun 2024 10:22:16 +0800 Subject: [PATCH] Add real snap test --- tests/real_snap_test.py | 145 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 tests/real_snap_test.py diff --git a/tests/real_snap_test.py b/tests/real_snap_test.py new file mode 100644 index 0000000..ef1d038 --- /dev/null +++ b/tests/real_snap_test.py @@ -0,0 +1,145 @@ +from huffman import Huffman + +def test_huffman_real_snapshot(): + # verified with libtw2 huffman + huffman = Huffman() + + # packet header + # 0x10, 0x04, 0x02, 0x1f, 0x5a, 0x5e, 0xd8 + + compressed = bytes([ + 0x5a, 0xd9, 0x55, 0x86, 0xd8, 0xb5, 0xf6, 0x35, 0x1c, 0x0d, 0xe7, 0x8a, 0xc3, + 0xda, 0x35, 0xab, 0xf0, 0x03, 0x6b, 0x5b, 0xc2, 0xda, 0x75, 0x8e, 0x86, 0x52, 0x5f, 0x7c, 0x0d, 0x6b, 0xd7, 0x6c, 0x62, + 0x97, 0x87, 0x83, 0x13, 0x5c, 0x3b, 0x27, 0xc0, 0x99, 0x2d, 0xe5, 0x04, 0xd6, 0xb6, 0x18, 0xca, 0x59, 0x53, 0xe8, 0x5a, + 0x39, 0x81, 0x8e, 0x5c, 0x8b, 0x6b, 0x63, 0x6d, 0x4b, 0x58, 0xf3, 0xc8, 0x32, 0x8e, 0x66, 0xed, 0x9a, 0x69, 0xba, 0x27, + 0x47, 0xfb, 0xa4, 0x38, 0xd4, 0xe5, 0x6b, 0x58, 0xbb, 0x66, 0x15, 0x7e, 0x60, 0x6d, 0x4b, 0x58, 0xfb, 0xe2, 0x6b, 0xa0, + 0x54, 0x6b, 0x9f, 0x58, 0xbb, 0x66, 0x13, 0xbb, 0x3c, 0x1c, 0x9c, 0xe0, 0x03, 0x5b, 0xe4, 0x4a, 0xb8, 0x12, 0xbc, 0x59, + 0xdb, 0x62, 0x28, 0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 0xbd, 0x3f, 0xa4, 0x16, 0x0a, 0x64, 0x4b, 0x57, 0xd2, + 0x02, 0x22, 0xb0, 0x3f, 0xcf, 0x86, 0x62, 0x06, 0xa6, 0x2b, 0x69, 0xc1, 0x53, 0xcc, 0x87, 0x27, 0xda, 0xf6, 0x21, 0xd3, + 0xd6, 0xfb, 0x4b, 0xa8, 0x94, 0xae, 0xa4, 0x85, 0x04, 0x31, 0x1f, 0x09, 0xc8, 0xa9, 0x1f, 0x35, 0xa8, 0xde, 0x1f, 0x5a, + 0xa5, 0x74, 0x25, 0x2d, 0xa0, 0x89, 0xf9, 0x40, 0x43, 0x9a, 0x92, 0x54, 0xaf, 0xf7, 0x57, 0x50, 0x29, 0x5d, 0x49, 0x0b, + 0x05, 0x62, 0x3e, 0x0a, 0x90, 0x03, 0xc7, 0xbb, 0x06, 0xbd, 0xbf, 0xb9, 0x52, 0xba, 0x92, 0x16, 0x66, 0x31, 0x1f, 0x33, + 0x6a, 0x72, 0x65, 0xd3, 0xd6, 0xfb, 0x2b, 0xd7, 0xc2, 0x5f, 0x2a, 0xd2, 0x95, 0xb4, 0x50, 0x16, 0xf3, 0x51, 0x46, 0xb8, + 0xae, 0x6c, 0xda, 0x7a, 0x7f, 0x97, 0xda, 0x86, 0x9e, 0x47, 0xe9, 0x4a, 0x5a, 0xb8, 0x24, 0x30, 0x1f, 0x97, 0xd0, 0xc7, + 0xd2, 0xf9, 0x5e, 0xef, 0xcf, 0xba, 0x52, 0xba, 0x92, 0x16, 0xac, 0xc5, 0x7c, 0x58, 0xa3, 0x14, 0x8e, 0xb8, 0x06, 0xbd, + 0x3f, 0xa3, 0x4a, 0xe9, 0x4a, 0x5a, 0x30, 0x12, 0xd8, 0x5f, 0x77, 0x2d, 0xbe, 0xb6, 0x8f, 0x31, 0x5d, 0x49, 0x0b, 0xdd, + 0x62, 0x3e, 0x8a, 0x1b, + ]) + + expected = bytes([ + 0x42, 0x05, 0xbf, 0x18, 0x05, 0x33, 0x36, 0x35, 0x39, 0x37, 0x20, 0xe2, 0x9a, 0x91, + 0x20, 0x7c, 0x20, 0x30, 0x35, 0x3a, 0x32, 0x36, 0x20, 0xe2, 0x97, 0xb7, 0x00, 0x47, + 0x65, 0x6e, 0x65, 0x71, 0x75, 0x65, 0x20, 0x62, 0x79, 0x20, 0x54, 0x68, 0x65, 0x6d, + 0x69, 0x78, 0x20, 0x7c, 0x20, 0x34, 0x2f, 0x35, 0x20, 0xe2, 0x98, 0x85, 0x00, 0x35, + 0x31, 0x37, 0x38, 0x36, 0x20, 0xe2, 0x9a, 0x91, 0x20, 0x7c, 0x20, 0x32, 0x36, 0x3a, + 0x33, 0x31, 0x20, 0xe2, 0x97, 0xb7, 0x00, 0x47, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x41, + 0x20, 0x62, 0x79, 0x20, 0x45, 0x76, 0x6f, 0x6c, 0x69, 0x20, 0x7c, 0x20, 0x33, 0x2f, + 0x35, 0x20, 0xe2, 0x98, 0x85, 0x00, 0x33, 0x30, 0x39, 0x32, 0x31, 0x20, 0xe2, 0x9a, + 0x91, 0x20, 0x7c, 0x20, 0x32, 0x35, 0x3a, 0x30, 0x32, 0x20, 0xe2, 0x97, 0xb7, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x16, 0x0d, 0xba, + 0xf6, 0xdf, 0x0a, 0xbb, 0xf6, 0xdf, 0x0a, 0x02, 0x00, 0xa5, 0x95, 0xfc, 0xac, 0x07, + 0x84, 0x0e, 0x00, 0xad, 0x02, 0x00, 0x00, 0xbf, 0xff, 0x03, 0x04, 0xd5, 0xd6, 0x90, + 0xcc, 0x0d, 0xd5, 0xbc, 0xb6, 0xd8, 0x04, 0xcf, 0xd4, 0x83, 0xe7, 0x0a, 0x85, 0xa5, + 0xcd, 0xe8, 0x06, 0x00, 0xbe, 0xff, 0x03, 0x04, 0x8d, 0xce, 0xd4, 0xac, 0x04, 0xab, + 0xf8,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08, 0xb2, 0xc9, 0xdc, 0xf1, 0x08, 0xbf, 0xff, 0x03, 0x00, 0x03, 0xb3, 0xb0, 0xbf, + 0xec, 0x01, 0x09, 0x80, 0x01, 0x06, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x03, 0xa0, + 0xa9, 0x1b, 0x02, 0x04, 0x0b, 0x00, 0x00, 0xb0, 0x84, 0x53, 0x00, 0xbe, 0xff, 0x03, + 0x00, 0x02, 0x00, 0x00, 0x0b, 0x01, 0x00, 0x94, 0xc6, 0x50, 0x00, 0xbe, 0xff, 0x03, + 0x01, 0x02, 0x00, 0x00, 0x17, 0x01, 0x01, 0x8f, 0xcf, 0xdc, 0x0a, 0x0b, 0x02, 0x00, + 0xb4, 0xac, 0x38, 0x00, 0xbe, 0xff, 0x03, 0x02, 0x02, 0x00, 0x00, 0x0b, 0x03, 0x00, + 0xa4, 0xd8, 0x5b, 0x00, 0xbe, 0xff, 0x03, 0x03, 0x02, 0x00, 0x00, 0x17, 0x03, 0x01, + 0x84, 0xa1, 0xdf, 0x0a, 0x0b, 0x04, 0x00, 0x94, 0x94, 0x3c, 0x00, 0xbe, 0xff, 0x03, + 0x04, 0x02, 0x01, 0x00, 0x0b, 0x05, 0x00, 0xb8, 0x94, 0x9d, 0x01, 0x00, 0xbe, 0xff, + 0x03, 0x05, 0x02, 0x00, 0x00, 0x17, 0x05, 0x01, 0x96, 0x87, 0xd8, 0x0a, 0x0b, 0x06, + 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x06, 0x02, 0x00, 0x00, 0x17, 0x06, 0x01, 0xa6, + 0xd1, 0xdf, 0x0a, 0x0b, 0x07, 0x00, 0xb0, 0xcd, 0xa2, 0x01, 0x00, 0xbe, 0xff, 0x03, + 0x07, 0x02, 0x00, 0x00, 0x0b, 0x08, 0x00, 0x80, 0xa2, 0x75, 0x00, 0xbe, 0xff, 0x03, + 0x08, 0x02, 0x00, 0x00, 0x17, 0x08, 0x01, 0xa0, 0x8e, 0xdf, 0x0a, 0x0b, 0x09, 0x00, + 0x94, 0x92, 0x4a, 0x00, 0xbe, 0xff, 0x03, 0x09, 0x02, 0x00, 0x00, 0x17, 0x09, 0x01, + 0xaa, 0xce, 0xdf, 0x0a, 0x0b, 0x0a, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x0a, 0x02, + 0x00, 0x00, 0x17, 0x0a, 0x01, 0xb6, 0xce, 0xca, 0x0a, 0x0b, 0x0b, 0x00, 0x80, 0xe2, + 0x4a, 0x00, 0xbe, 0xff, 0x03, 0x0b, 0x02, 0x00, 0x00, 0x17, 0x0b, 0x01, 0x91, 0x98, + 0xdd, 0x0a, 0x0b, 0x0c, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x0c, 0x02, 0x01, 0x00, + 0x17, 0x0c, 0x01, 0x9b, 0xe4, 0xda, 0x0a, 0x0b, 0x0d, 0x00, 0xb4, 0xf3, 0x36, 0x00, + 0xbe, 0xff, 0x03, 0x0d, 0x02, 0x00, 0x00, 0x17, 0x0d, 0x01, 0xb5, 0xdb, 0xdf, 0x0a, + 0x0b, 0x0e, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x0e, 0x02, 0x00, 0x00, 0x17, 0x0e, + 0x01, 0x84, 0xa9, 0xdd, 0x0a, 0x0b, 0x0f, 0x00, 0x84, 0x9a, 0xbf, 0x01, 0x00, 0xbe, + 0xff, 0x03, 0x0f, 0x02, 0x00, 0x00, 0x0b, 0x10, 0x00, 0x98, 0x9c, 0x7a, 0x00, 0xbe, + 0xff, 0x03, 0x10, 0x02, 0x00, 0x00, 0x17, 0x10, 0x01, 0x9a, 0xa6, 0xdb, 0x0a, 0x0b, + 0x11, 0x00, 0xb8, 0xb7, 0x52, 0x00, 0xbe, 0xff, 0x03, 0x11, 0x02, 0x00, 0x00, 0x17, + 0x11, 0x01, 0xbe, 0x9e, 0xdf, 0x0a, 0x0b, 0x12, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, + 0x12, 0x02, 0x01, 0x00, 0x0b, 0x13, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x13, 0x02, + 0x00, 0x00, 0x17, 0x13, 0x01, 0xb7, 0xcc, 0xdf, 0x0a, 0x0b, 0x14, 0x00, 0x40, 0x00, + 0xbe, 0xff, 0x03, 0x14, 0x02, 0x00, 0x00, 0x0b, 0x15, 0x00, 0xbc, 0x8a, 0xc5, 0x02, + 0x00, 0xbe, 0xff, 0x03, 0x15, 0x02, 0x00, 0x00, 0x17, 0x15, 0x01, 0x80, 0xb2, 0xdd, + 0x0a, 0x0b, 0x16, 0x00, 0x9c, 0x92, 0x28, 0x00, 0xbe, 0xff, 0x03, 0x16, 0x02, 0x00, + 0x00, 0x17, 0x16, 0x01, 0x89, 0x87, 0xde, 0x0a, 0x0b, 0x17, 0x00, 0xac, 0xdf, 0x3a, + 0x00, 0xbe, 0xff, 0x03, 0x17, 0x02, 0x00, 0x00, 0x17, 0x17, 0x01, 0xa0, 0xf4, 0xdd, + 0x0a, 0x0b, 0x18, 0x00, 0x88, 0x8b, 0x45, 0x00, 0xbe, 0xff, 0x03, 0x18, 0x02, 0x01, + 0x00, 0x0b, 0x19, 0x00, 0x94, 0x95, 0x94, 0x01, 0x00, 0xbe, 0xff, 0x03, 0x19, 0x02, + 0x00, 0x00, 0x17, 0x19, 0x01, 0xa4, 0xc6, 0xdf, 0x0a, 0x0b, 0x1a, 0x00, 0x40, 0x00, + 0xbe, 0xff, 0x03, 0x1a, 0x02, 0x00, 0x00, 0x17, 0x1a, 0x01, 0x9f, 0x8d, 0xdc, 0x0a, + 0x0b, 0x1b, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x1b, 0x02, 0x00, 0x00, 0x17, 0x1b, + 0x01, 0x98, 0xff, 0xdd, 0x0a, 0x0b, 0x1c, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x1c, + 0x02, 0x00, 0x00, 0x17, 0x1c, 0x01, 0xba, 0xfb, 0xda, 0x0a, 0x0b, 0x1d, 0x00, 0x40, + 0x00, 0xbe, 0xff, 0x03, 0x1d, 0x02, 0x00, 0x00, 0x17, 0x1d, 0x01, 0xaa, 0xce, 0xdf, + 0x0a, 0x0b, 0x1e, 0x00, 0x88, 0x8e, 0x3f, 0x00, 0xbe, 0xff, 0x03, 0x1e, 0x02, 0x00, + 0x00, 0x17, 0x1e, 0x01, 0xb2, 0xce, 0xdf, 0x0a, 0x0b, 0x1f, 0x00, 0xa4, 0xad, 0x34, + 0x00, 0xbe, 0xff, 0x03, 0x1f, 0x02, 0x01, 0x00, 0x17, 0x1f, 0x01, 0x9d, 0x9c, 0xdb, + 0x0a, 0x0b, 0x20, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, 0x20, 0x02, 0x00, 0x00, 0x17, + 0x20, 0x01, 0x86, 0xd8, 0xda, 0x0a, 0x0b, 0x21, 0x00, 0x40, 0x00, 0xbe, 0xff, 0x03, + 0x21, 0x02, 0x01, 0x00, 0x0b, 0x22, 0x00, 0x88, 0xf0, 0x9d, 0x01, 0x00, 0xbe, 0xff, + 0x03, 0x22, 0x02, 0x00, 0x00, 0x17 + ]) + + decompressed = huffman.decompress(compressed) + assert decompressed == expected