[jruby~main:8a5a01b3] Add test for JRUBY-3818. This is already fixed on trunk.
- From: nicksieger@kenai.com
- To: commits@jruby.kenai.com
- Subject: [jruby~main:8a5a01b3] Add test for JRUBY-3818. This is already fixed on trunk.
- Date: Fri, 19 Mar 2010 03:35:33 +0000
Project: jruby
Repository: main
Revision: 8a5a01b31213faf3e38b5200eaa44a3a281f6934
Author: nicksieger
Date: 2010-03-19 03:32:40 UTC
Link:
Log Message:
------------
Add test for JRUBY-3818. This is already fixed on trunk.
Revisions:
----------
8a5a01b31213faf3e38b5200eaa44a3a281f6934
Modified Paths:
---------------
test/test_big_decimal.rb
Diffs:
------
diff --git a/test/test_big_decimal.rb b/test/test_big_decimal.rb
index dd1a6e5..5fc21e5 100644
--- a/test/test_big_decimal.rb
+++ b/test/test_big_decimal.rb
@@ -230,4 +230,13 @@ class TestBigDecimal < Test::Unit::TestCase
assert neg_inf < 0
assert BigDecimal.new("5E-69999999").to_f < Float::EPSILON
end
+
+ #JRUBY-3818
+ def test_decimal_format
+ require 'java'
+ format = java.text.DecimalFormat.new("#,##0.00")
+ value = java.math.BigDecimal.new("10")
+ assert format.format(value) == "10.00"
+ end
+
end
|
[jruby~main:8a5a01b3] Add test for JRUBY-3818. This is already fixed on trunk. |
nicksieger | 03/19/2010 |





