/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_locale.py | 149 def _test_format(self, format, value, out, **format_opts):
member in class:BaseFormattingTest 169 self._test_format("%f", 1024, grouping=1, out='1%s024.000000' % self.sep)
170 self._test_format("%f", 102, grouping=1, out='102.000000')
171 self._test_format("%f", -42, grouping=1, out='-42.000000')
172 self._test_format("%+f", -42, grouping=1, out='-42.000000')
175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20))
177 self._test_format("%+10.f", -4200, grouping=1,
179 self._test_format("%-10.f", -4200, grouping=1,
183 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep)
184 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep) [all...] |
/external/python/cpython2/Lib/test/ |
test_locale.py | 149 def _test_format(self, format, value, out, **format_opts): member in class:BaseFormattingTest 169 self._test_format("%f", 1024, grouping=1, out='1%s024.000000' % self.sep) 170 self._test_format("%f", 102, grouping=1, out='102.000000') 171 self._test_format("%f", -42, grouping=1, out='-42.000000') 172 self._test_format("%+f", -42, grouping=1, out='-42.000000') 175 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20)) 177 self._test_format("%+10.f", -4200, grouping=1, 179 self._test_format("%-10.f", -4200, grouping=1, 183 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep) 184 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep [all...] |
/external/python/cpython3/Lib/test/ |
test_locale.py | 146 def _test_format(self, format, value, out, **format_opts): member in class:BaseFormattingTest 167 self._test_format("%f", 1024, grouping=1, out='1%s024.000000' % self.sep) 168 self._test_format("%f", 102, grouping=1, out='102.000000') 169 self._test_format("%f", -42, grouping=1, out='-42.000000') 170 self._test_format("%+f", -42, grouping=1, out='-42.000000') 173 self._test_format("%20.f", -42, grouping=1, out='-42'.rjust(20)) 175 self._test_format("%+10.f", -4200, grouping=1, 177 self._test_format("%-10.f", -4200, grouping=1, 181 self._test_format("%d", 4200, grouping=True, out='4%s200' % self.sep) 182 self._test_format("%+d", 4200, grouping=True, out='+4%s200' % self.sep [all...] |