-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #886 from bact/dev
Add license info to /tests and README_TH.md
- Loading branch information
Showing
23 changed files
with
305 additions
and
209 deletions.
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
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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
# SPDX-FileCopyrightText: Copyright 2016-2023 PyThaiNLP Project | ||
# SPDX-License-Identifier: Apache-2.0 | ||
import unittest | ||
from pythainlp.ancient import aksonhan_to_current | ||
|
||
|
||
class TestAncientPackage(unittest.TestCase): | ||
def test_aksonhan_to_current(self): | ||
self.assertEqual(aksonhan_to_current("ก"), 'ก') | ||
self.assertEqual(aksonhan_to_current("กก"), 'กก') | ||
self.assertEqual(aksonhan_to_current("ถนน"), 'ถนน') | ||
self.assertEqual(aksonhan_to_current("จกก"), 'จัก') | ||
self.assertEqual(aksonhan_to_current("ดง่ง"), 'ดั่ง') | ||
self.assertEqual(aksonhan_to_current("นน้น"), 'นั้น') | ||
self.assertEqual(aksonhan_to_current("ขดด"), 'ขัด') | ||
self.assertEqual(aksonhan_to_current("ตรสส"), 'ตรัส') | ||
self.assertEqual(aksonhan_to_current("ขบบ"), 'ขับ') | ||
self.assertEqual(aksonhan_to_current("วนน"), 'วัน') | ||
self.assertEqual(aksonhan_to_current("หลงง"), 'หลัง') | ||
self.assertEqual(aksonhan_to_current("บงงคบบ"), 'บังคับ') | ||
self.assertEqual(aksonhan_to_current("สรรเพชญ"), 'สรรเพชญ') | ||
self.assertEqual(aksonhan_to_current("ก"), "ก") | ||
self.assertEqual(aksonhan_to_current("กก"), "กก") | ||
self.assertEqual(aksonhan_to_current("ถนน"), "ถนน") | ||
self.assertEqual(aksonhan_to_current("จกก"), "จัก") | ||
self.assertEqual(aksonhan_to_current("ดง่ง"), "ดั่ง") | ||
self.assertEqual(aksonhan_to_current("นน้น"), "นั้น") | ||
self.assertEqual(aksonhan_to_current("ขดด"), "ขัด") | ||
self.assertEqual(aksonhan_to_current("ตรสส"), "ตรัส") | ||
self.assertEqual(aksonhan_to_current("ขบบ"), "ขับ") | ||
self.assertEqual(aksonhan_to_current("วนน"), "วัน") | ||
self.assertEqual(aksonhan_to_current("หลงง"), "หลัง") | ||
self.assertEqual(aksonhan_to_current("บงงคบบ"), "บังคับ") | ||
self.assertEqual(aksonhan_to_current("สรรเพชญ"), "สรรเพชญ") |
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
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
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
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
Oops, something went wrong.