diff options
Diffstat (limited to 'tests/tlzss.nim')
-rw-r--r-- | tests/tlzss.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/tlzss.nim b/tests/tlzss.nim index 7325d5b..b6b3c51 100644 --- a/tests/tlzss.nim +++ b/tests/tlzss.nim | |||
@@ -66,15 +66,6 @@ suite "lzsschain": | |||
66 | test "decode": | 66 | test "decode": |
67 | check chain().decode() == @[0'u8, 1, 2, 3, 4, 5, 0, 1, 2, 3, 0, 1, 4, 5, 0, 5, 5, 0, 5, 5] | 67 | check chain().decode() == @[0'u8, 1, 2, 3, 4, 5, 0, 1, 2, 3, 0, 1, 4, 5, 0, 5, 5, 0, 5, 5] |
68 | 68 | ||
69 | test "stats": | ||
70 | let stats = chain().stats() | ||
71 | check stats.characters == newCountTable(concat( | ||
72 | repeat(0'u8, 2), repeat(1'u8, 2), repeat(2'u8, 1), repeat(3'u8, 1), repeat(4'u8, 1), repeat(5'u8, 3))) | ||
73 | check stats.lengths == newCountTable(concat( | ||
74 | repeat(3, 2), repeat(4, 1))) | ||
75 | check stats.positions == newCountTable(concat( | ||
76 | repeat(3, 1), repeat(6, 1), repeat(8, 1))) | ||
77 | |||
78 | suite "lzssencoder": | 69 | suite "lzssencoder": |
79 | test "commonPrefixLength": | 70 | test "commonPrefixLength": |
80 | check commonPrefixLength([], [], 0, 10) == 0 | 71 | check commonPrefixLength([], [], 0, 10) == 0 |