diff options
author | Stanislav Malyshev <stas@php.net> | 2011-01-03 03:58:57 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-01-03 03:58:57 +0000 |
commit | 7d3a0e15f55e5e20b6dc3df76a4d9869756590d9 (patch) | |
tree | 631b189a79dff90eebefb1ac2d0a0fe8f659524d /ext/intl/tests/formatter_get_set_attribute.phpt | |
parent | b059dfa1e7c808782824f97d0abd7e2722363a34 (diff) | |
download | php-git-7d3a0e15f55e5e20b6dc3df76a4d9869756590d9.tar.gz |
Imlement clone for formatters that support it
# also some test fixes, more to follow
Diffstat (limited to 'ext/intl/tests/formatter_get_set_attribute.phpt')
-rwxr-xr-x | ext/intl/tests/formatter_get_set_attribute.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/intl/tests/formatter_get_set_attribute.phpt b/ext/intl/tests/formatter_get_set_attribute.phpt index c523346841..95a2643439 100755 --- a/ext/intl/tests/formatter_get_set_attribute.phpt +++ b/ext/intl/tests/formatter_get_set_attribute.phpt @@ -25,7 +25,7 @@ function ut_main() 'FRACTION_DIGITS' => array( NumberFormatter::FRACTION_DIGITS, 5, 12345.123456 ), 'MULTIPLIER' => array( NumberFormatter::MULTIPLIER, 2, 12345.123456 ), 'GROUPING_SIZE' => array( NumberFormatter::GROUPING_SIZE, 2, 12345.123456 ), - 'ROUNDING_MODE' => array( NumberFormatter::ROUNDING_MODE, 7, 12345.123456 ), + 'ROUNDING_MODE' => array( NumberFormatter::ROUNDING_MODE, 1, 12345.123456 ), 'ROUNDING_INCREMENT' => array( NumberFormatter::ROUNDING_INCREMENT, (float)2, 12345.123456 ), 'FORMAT_WIDTH' => array( NumberFormatter::FORMAT_WIDTH, 27, 12345.123456 ), 'PADDING_POSITION' => array( NumberFormatter::PADDING_POSITION, 21, 12345.123456 ), @@ -155,10 +155,10 @@ New attribute value: 2 ; Format result: '0,01,23,45.12346' ; Parse result: 1234 Attribute ROUNDING_MODE Old attribute value: 4 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346 Setting attribute: ok -New attribute value: 7 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346 +New attribute value: 1 ; Format result: '0,012,345.12345' ; Parse result: 12345.12345 Attribute ROUNDING_INCREMENT -Old attribute value: 0 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346 +Old attribute value: 1.0E-5 ; Format result: '0,012,345.12346' ; Parse result: 12345.12346 Setting attribute: ok New attribute value: 2 ; Format result: '0,012,346.00000' ; Parse result: 12346 |