Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/compact/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"tests.compact.testc_parse",
"tests.compact.testc_tokenize",
"tests.compact.testc_tools",
"tests.compact.testc_transliterate",
"tests.compact.testc_util",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/compact/testc_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _count_difference(st1: str, st2: str) -> int:
return count


class MisspellTestCaseX(unittest.TestCase):
class MisspellTestCase(unittest.TestCase):
def setUp(self):
self.texts = ["เรารักคุณมากที่สุดในโลก", "เราอยู่ที่มหาวิทยาลัยขอนแก่น"]

Expand Down
12 changes: 12 additions & 0 deletions tests/compact/testc_transliterate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

from pythainlp.transliterate import transliterate


class TransliterateICUTestCase(unittest.TestCase):
def test_transliterate(self):
self.assertEqual(transliterate("แมว", "pyicu"), "mæw")
1 change: 1 addition & 0 deletions tests/core/test_ancient.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

from pythainlp.ancient import aksonhan_to_current
Expand Down
2 changes: 2 additions & 0 deletions tests/core/test_transliterate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

Expand Down
2 changes: 2 additions & 0 deletions tests/extra/testx_translate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

Expand Down
2 changes: 2 additions & 0 deletions tests/extra/testx_transliterate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

Expand Down
2 changes: 2 additions & 0 deletions tests/extra/testx_ulmfit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import pickle
import unittest
Expand Down
2 changes: 2 additions & 0 deletions tests/extra/testx_wangchanberta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

Expand Down
2 changes: 2 additions & 0 deletions tests/extra/testx_word_vector.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

import unittest

Expand Down