def test_postings_file_entry_from_string_with_skip(): pfe = PostingsFileEntry(1, 10, 111, 123) pfe_clone = PostingsFileEntry.from_string(pfe.to_string()) assert_eq(pfe, pfe_clone)
def test_postings_file_entry_from_string_only_doc_id(): pfe = PostingsFileEntry(1) pfe_clone = PostingsFileEntry.from_string(pfe.to_string()) assert_eq(pfe, pfe_clone)