Skip to content

Commit

Permalink
update g_wiktextract_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 19, 2024
1 parent 50e32fd commit ac0548e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/g_wiktextract_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def __init__(self, *args, **kwargs):
{
"wiktextract/10-kaikki-fa-PlacesInIran.jsonl": "f7f4a92f",
"wiktextract/10-kaikki-fa-PlacesInIran.txt": "29b20845",
"wiktextract/10-kaikki-fa-PlacesInIran-category.txt": "d12fa9c0",
"wiktextract/10-kaikki-fa-pos-adv.jsonl": "2ddcbbbd",
"wiktextract/10-kaikki-fa-pos-adv.txt": "fbaa9972",
},
)

Expand All @@ -37,6 +40,22 @@ def test_convert_jsonl_txt_1(self):
"10-kaikki-fa-PlacesInIran",
)

def test_convert_jsonl_txt_1_cats(self):
self.convert_jsonl_txt(
"10-kaikki-fa-PlacesInIran",
"10-kaikki-fa-PlacesInIran-category",
readOptions={
"categories": True,
},
)

def test_convert_jsonl_txt_2(self):
self.convert_jsonl_txt(
"10-kaikki-fa-pos-adv",
"10-kaikki-fa-pos-adv",
)



if __name__ == "__main__":
unittest.main()

0 comments on commit ac0548e

Please sign in to comment.