Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added swadesh list from wikipedia, changed all words to Coptic script,added some missing words * added tests * updated tests and list to conform to discussed format * one change from test * Mk small adjustment to coptic Swadesh test * Added documentation
- Loading branch information
1 parent
7bc3ffd
commit f6bc71b
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""Test for Coptic, based on John Stewart's tests for Old English""" | ||
|
||
import os | ||
import unittest | ||
|
||
from cltk.corpus.swadesh import Swadesh | ||
|
||
__author__ = ["Edward Nolan <nolanee@umich.edu>", ] | ||
|
||
|
||
class TestCoptic(unittest.TestCase): | ||
"""Class for unittest""" | ||
|
||
# Swadesh list | ||
def test_swadesh_coptic(self): | ||
swadesh = Swadesh('cop') | ||
first_word = 'ⲁⲛⲟⲕ' | ||
match = swadesh.words()[0] | ||
self.assertEqual(first_word, match) | ||
turn = ['ⲡⲱⲱⲛⲉ', 'ⲕⲧⲟ'] | ||
match = swadesh.words()[125] | ||
self.assertEqual(turn, match) | ||
match = len(swadesh.words()) | ||
self.assertEqual(match, 207) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters