Skip to content

Commit 82ebb84

Browse files
committed
revert commit 9b8aa73
it was a jruby-1_7 patch only
1 parent 84562e1 commit 82ebb84

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

core/src/main/java/org/jruby/ext/bigdecimal/RubyBigDecimal.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,7 @@ private static RubyBigDecimal newInstance(ThreadContext context, IRubyObject rec
520520

521521
BigDecimal decimal;
522522
try {
523-
System.err.println("newInstance " + strValue );
524-
System.err.println("newInstance " + mathContext );
525523
decimal = new BigDecimal(strValue, mathContext);
526-
System.err.println("newInstance " + decimal );
527524
} catch (NumberFormatException e) {
528525
if (isOverflowExceptionMode(context.runtime)) throw context.runtime.newFloatDomainError("exponent overflow");
529526

@@ -548,9 +545,7 @@ public static RubyBigDecimal newInstance(ThreadContext context, IRubyObject recv
548545

549546
@JRubyMethod(name = "new", meta = true)
550547
public static RubyBigDecimal newInstance(ThreadContext context, IRubyObject recv, IRubyObject arg, IRubyObject mathArg) {
551-
System.err.println( "margs" + mathArg);
552548
int digits = (int) mathArg.convertToInteger().getLongValue();
553-
System.err.println( "margs" + digits);
554549
if (digits < 0) throw context.runtime.newArgumentError("argument must be positive");
555550

556551
MathContext mathContext = new MathContext(digits);

test/jruby/test_bignum.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
require 'test/unit'
2-
require 'bigdecimal'
32

43
class TestBignum < Test::Unit::TestCase
54
# others tested in FixnumBignumAutoconversion test
@@ -42,11 +41,6 @@ def test_bignum_should_respond_to_array_operator
4241
def test_bignum_aref_with_bignum_arg_no_exception
4342
assert_equal(0, (2**64)[2**32])
4443
end
45-
46-
def test_GH_2650
47-
assert_equal(BigDecimal.new("10.91231", 1).to_f, 10.91231)
48-
assert_equal(BigDecimal.new("10.9", 2).to_f, 10.9)
49-
end
5044
# more to come
5145

52-
end
46+
end

0 commit comments

Comments
 (0)