@@ -61,6 +61,11 @@ def setUp(self):
6161 # Thai
6262 param ('th' , "เมื่อ กุมภาพันธ์ 09, 2015, 09:27:57 AM" , "february 09 2015 09:27:57 am" ),
6363 param ('th' , "เมื่อ กรกฎาคม 05, 2012, 01:18:06 AM" , "july 05 2012 01:18:06 am" ),
64+
65+ # Filipino
66+ param ('ph' , "Biyernes Hulyo 3, 2015" , "friday july 3 2015" ),
67+ param ('ph' , "Pebrero 5, 2015 7:00 pm" , "february 5 2015 7:00 pm" ),
68+
6469 # Miscellaneous
6570 param ('en' , "2014-12-12T12:33:39-08:00" , "2014-12-12 12:33:39-08:00" ),
6671 param ('en' , "2014-10-15T16:12:20+00:00" , "2014-10-15 16:12:20+00:00" ),
@@ -154,6 +159,9 @@ def test_translation(self, shortname, datetime_string, expected_translation):
154159 param ('vi' , "21 giờ trước" , "21 hour ago" ),
155160 param ('vi' , "Hôm qua 08:16" , "1 day 08:16" ),
156161 param ('vi' , "Hôm nay 15:39" , "0 day 15:39" ),
162+ #Filipino
163+ param ('ph' , "kahapon" , "1 day" ),
164+ param ('ph' , "ngayon" , "0 second" ),
157165 ])
158166 def test_freshness_translation (self , shortname , datetime_string , expected_translation ):
159167 self .given_bundled_language (shortname )
@@ -178,6 +186,7 @@ def test_freshness_translation(self, shortname, datetime_string, expected_transl
178186 param ('th' , "8 มกราคม 2015 เวลา 12:22 น." , ['8' , ' ' , 'มกราคม' , ' ' , '2015' , ' ' , 'เวลา' , ' ' , '12' , ':' , '22' , ' ' , 'น.' ]),
179187 param ('pl' , "8 stycznia 2015 o 10:19" , ['8' , ' ' , 'stycznia' , ' ' , '2015' , ' ' , 'o' , ' ' , '10' , ':' , '19' ]),
180188 param ('vi' , "Thứ Năm, ngày 8 tháng 1 năm 2015" , ["Thứ Năm" , " " , "ngày" , " " , "8" , " tháng " , "1" , " " , "năm" , " " , "2015" ]),
189+ param ('ph' , "Biyernes Hulyo 3 2015" , ["Biyernes" , " " , "Hulyo" , " " , "3" , " " , "2015" ]),
181190 ])
182191 def test_split (self , shortname , datetime_string , expected_tokens ):
183192 self .given_bundled_language (shortname )
@@ -200,6 +209,7 @@ def test_split(self, shortname, datetime_string, expected_tokens):
200209 param ('pl' , "przedwczoraj" , strip_timezone = False ),
201210 param ('fa' , "ژانویه 8, 2015، ساعت 15:46" , strip_timezone = False ),
202211 param ('vi' , "2 tuần 3 ngày" , strip_timezone = False ),
212+ param ('ph' , "Hulyo 3, 2015 7:00 pm" , strip_timezone = False ),
203213 ])
204214 def test_applicable_languages (self , shortname , datetime_string , strip_timezone ):
205215 self .given_bundled_language (shortname )
0 commit comments