mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Test that huffman codec works with empty freqs dict
This commit is contained in:
parent
15c9b59f0e
commit
99ff8b902f
|
@ -48,6 +48,11 @@ def test1():
|
|||
py_codes = list(py_codes.items())
|
||||
py_codes.sort()
|
||||
assert codec.strings == [c for i, c in py_codes]
|
||||
|
||||
|
||||
def test_empty():
|
||||
codec = HuffmanCodec({})
|
||||
assert codec.strings == []
|
||||
|
||||
|
||||
def test_round_trip():
|
||||
|
|
Loading…
Reference in New Issue
Block a user