From 5079d3f7daae29e3fdcb018a7645897e6d4ffeb6 Mon Sep 17 00:00:00 2001 From: Arthit Suriyawongkul Date: Wed, 13 Dec 2023 08:05:10 +0000 Subject: [PATCH] Sort import test_util.py --- tests/test_util.py | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 81a2e0284..9fc8d6cf1 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -18,14 +18,16 @@ arabic_digit_to_thai_digit, bahttext, collate, - countthai, + convert_years, count_thai_chars, + countthai, dict_trie, display_thai_char, digit_to_text, emoji_to_thai, eng_to_thai, find_keyword, + ipa_to_rtgs, is_native_thai, isthai, isthaichar, @@ -33,41 +35,39 @@ now_reign_year, num_to_thaiword, maiyamok, + nectec_to_ipa, rank, reign_year_to_ad, remove_dangling, remove_dup_spaces, + remove_tone_ipa, remove_tonemark, + remove_trailing_repeat_consonants, remove_zw, rhyme, text_to_arabic_digit, + text_to_num, text_to_thai_digit, - thaiword_to_date, thai_digit_to_arabic_digit, + thai_keyboard_dist, + thai_to_eng, thai_strftime, + thai_strptime, + thai_word_tone_detector, + thaiword_to_date, + thaiword_to_num, thaiword_to_time, time_to_thaiword, - thai_to_eng, + tis620_to_utf8, to_idna, - thaiword_to_num, - thai_keyboard_dist, - text_to_num, - words_to_num, + tone_detector, sound_syllable, syllable_length, syllable_open_close_detector, - tone_detector, - thai_word_tone_detector, - convert_years, - thai_strptime, - nectec_to_ipa, - ipa_to_rtgs, - remove_tone_ipa, - tis620_to_utf8, - remove_trailing_repeat_consonants, + words_to_num, ) +from pythainlp.util.morse import morse_decode, morse_encode from pythainlp.util.spell_words import spell_word -from pythainlp.util.morse import morse_encode, morse_decode class TestUtilPackage(unittest.TestCase):