diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-12-17 16:11:47 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-12-17 16:11:47 +0100 |
commit | 07567aea5f0c6f14a53f511ab4cc46201b669795 (patch) | |
tree | e3c8f723feeab923efc55d714167dde1df134d25 /actionpack/test | |
parent | f7e33620caffecb7f065c5e4f5a19597f8c35cdd (diff) | |
download | rails-07567aea5f0c6f14a53f511ab4cc46201b669795.tar.gz rails-07567aea5f0c6f14a53f511ab4cc46201b669795.tar.bz2 rails-07567aea5f0c6f14a53f511ab4cc46201b669795.zip |
Revert "Fixed number_with_precision rounding error [#6182 state:resolved]"
This reverts commit 006ec77e60163d57d655479602230672d98e0f10.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/number_helper_test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/actionpack/test/template/number_helper_test.rb b/actionpack/test/template/number_helper_test.rb index 6b234cfbb9..ab127521ad 100644 --- a/actionpack/test/template/number_helper_test.rb +++ b/actionpack/test/template/number_helper_test.rb @@ -100,11 +100,6 @@ class NumberHelperTest < ActionView::TestCase assert_equal("0", number_with_precision(0, :precision => 0)) assert_equal("0.00100", number_with_precision(0.001, :precision => 5)) assert_equal("0.001", number_with_precision(0.00111, :precision => 3)) - assert_equal("10.00", number_with_precision(9.995, :precision => 2)) - assert_equal("11.00", number_with_precision(10.995, :precision => 2)) - assert_equal("10.0", number_with_precision(9.995, :precision => 3, :significant => true)) - assert_equal("9.99", number_with_precision(9.994, :precision => 3, :significant => true)) - assert_equal("11.0", number_with_precision(10.995, :precision => 3, :significant => true)) end def test_number_with_precision_with_custom_delimiter_and_separator |