| 35 | namespace coding |
| 36 | { |
| 37 | UNIT_TEST(Huffman_Smoke) |
| 38 | { |
| 39 | HuffmanCoder h; |
| 40 | h.Init(MakeUniStringVector(vector<string>{"ab", "ac"})); |
| 41 | |
| 42 | TestDecode(h, 0, 1, static_cast<uint32_t>('a')); // 0 |
| 43 | TestDecode(h, 1, 2, static_cast<uint32_t>('b')); // 10 |
| 44 | TestDecode(h, 3, 2, static_cast<uint32_t>('c')); // 11 |
| 45 | } |
| 46 | |
| 47 | UNIT_TEST(Huffman_OneSymbol) |
| 48 | { |
nothing calls this directly
no test coverage detected