Skip to content

Commit

Permalink
Fixed KhaveeVerifier bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Apr 14, 2023
1 parent 454ead4 commit 356e47d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pythainlp/khavee/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
from typing import List, Union
from pythainlp.tokenize import subword_tokenize
from pythainlp.util import sound_syllable


class KhaveeVerifier:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_khavee.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def test_check_sara(self):
def test_check_marttra(self):
self.assertEqual(kv.check_marttra('สาว'), 'เกอว')

def test_check_sumpus(self):
self.assertTrue(kv.check_sumpus('สรร','อัน'))
self.assertFalse(kv.check_sumpus('สรร','แมว'))
def test_is_sumpus(self):
self.assertTrue(kv.is_sumpus('สรร','อัน'))
self.assertFalse(kv.is_sumpus('สรร','แมว'))

def test_check_klon(self):
self.assertEqual(
Expand Down

0 comments on commit 356e47d

Please sign in to comment.