Skip to content

Commit 7aa7c5c

Browse files
authored
Update tests/core/test_util.py
1 parent 51a6feb commit 7aa7c5c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/core/test_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def test_number(self):
143143
self.assertEqual(num_to_thaiword(-273), "ลบสองร้อยเจ็ดสิบสาม")
144144
# เอ็ด rule: ones=1 must use เอ็ด when number > 1
145145
self.assertEqual(num_to_thaiword(1), "หนึ่ง")
146+
self.assertEqual(num_to_thaiword(-1), "ลบหนึ่ง")
146147
self.assertEqual(num_to_thaiword(101), "หนึ่งร้อยเอ็ด")
147148
self.assertEqual(num_to_thaiword(1001), "หนึ่งพันเอ็ด")
148149
self.assertEqual(num_to_thaiword(1000001), "หนึ่งล้านเอ็ด")

0 commit comments

Comments
 (0)