@@ -0,0 +1,452 @@
+from compressor.core import CharNode%0A%0A%0Adef test_charnode_eq():%0A    assert CharNode('first', 1) == CharNode('second', 1)%0A%0A%0Adef test_charnode_lt():%0A    assert CharNode('smaller', 1) %3C CharNode('bigger', 2)%0A%0A%0Adef test_charnode_is_leaf():%0A    assert CharNode('leaf', 1).leaf is True%0A%0A%0Adef test_charnode_is_not_leaf():%0A    left = CharNode('left', 1)%0A    right = CharNode('right', 1)%0A    root = CharNode('root', 1, left, right)%0A    assert root.leaf is False%0A

add tests for CharNode