diff --git a/tests/test_utils.py b/tests/test_utils.py deleted file mode 100644 index e659198..0000000 --- a/tests/test_utils.py +++ /dev/null @@ -1,21 +0,0 @@ - -from dictdatabase import utils, io_unsafe - - -def test_seek(): - v = b'{"a": 1, "b": {}}' - vc = b'{"a":1,"b":{}}' - - assert utils.seek_index_through_value_bytes(v, 5) == 7 - assert utils.seek_index_through_value_bytes(v, 6) == 7 - assert utils.seek_index_through_value_bytes(vc, 5) == 6 - - assert utils.seek_index_through_value_bytes(v, 13) == 16 - assert utils.seek_index_through_value_bytes(vc, 11) == 13 - - - n = b'{"a": 1234, "b": {"c": 2}}' - assert utils.seek_index_through_value_bytes(n, 5) == 10 - - -test_seek()