Home
last modified time | relevance | path

Searched refs:get_fmt (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_decimal.py869 def get_fmt(x, locale, fmt='n'): function
872 self.assertEqual(get_fmt(Decimal('12.7'), en_US), '12.7')
873 self.assertEqual(get_fmt(Decimal('12.7'), fr_FR), '12,7')
874 self.assertEqual(get_fmt(Decimal('12.7'), ru_RU), '12,7')
875 self.assertEqual(get_fmt(Decimal('12.7'), crazy), '1-2&7')
877 self.assertEqual(get_fmt(123456789, en_US), '123,456,789')
878 self.assertEqual(get_fmt(123456789, fr_FR), '123456789')
879 self.assertEqual(get_fmt(123456789, ru_RU), '123 456 789')
880 self.assertEqual(get_fmt(1234567890123, crazy), '123456-78-9012-3')
882 self.assertEqual(get_fmt(123456789, en_US, '.6n'), '1.23457e+8')
[all …]
/external/python/cpython3/Lib/test/
Dtest_decimal.py1089 def get_fmt(x, override=None, fmt='n'): function
1126 self.assertEqual(get_fmt(Decimal('12.7'), en_US), '12.7')
1127 self.assertEqual(get_fmt(Decimal('12.7'), fr_FR), '12,7')
1128 self.assertEqual(get_fmt(Decimal('12.7'), ru_RU), '12,7')
1129 self.assertEqual(get_fmt(Decimal('12.7'), crazy), '1-2&7')
1131 self.assertEqual(get_fmt(123456789, en_US), '123,456,789')
1132 self.assertEqual(get_fmt(123456789, fr_FR), '123456789')
1133 self.assertEqual(get_fmt(123456789, ru_RU), '123 456 789')
1134 self.assertEqual(get_fmt(1234567890123, crazy), '123456-78-9012-3')
1136 self.assertEqual(get_fmt(123456789, en_US, '.6n'), '1.23457e+8')
[all …]
/external/libabigail/tests/data/test-diff-filter/
Dtest-PR27569-v0.abi49270 …<var-decl name="get_fmt" type-id="3a53e3ec" visibility="default" filepath="include/media/v4l2-subd…
Dtest-PR27569-v1.abi49299 …<var-decl name="get_fmt" type-id="3a53e3ec" visibility="default" filepath="include/media/v4l2-subd…