Sha256: e9f679993425561997e96325cefba918ab9eafe26224e48950916cce58498672
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
require 'spec_helper' require 'bigdecimal' require 'jruby-coercion/numeric' describe Java::JavaMath::BigDecimal do context "Numeric" do [ [3, 3], [Integer(3), 3], [-100, -100], [0, 0] ].each do |test_numeric, constructor_arg| specify { test_numeric.to_java(described_class).should eq(described_class.new(constructor_arg)) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jruby-coercion-0.0.2-java | spec/coercions/big_decimal_spec.rb |
jruby-coercion-0.0.1-java | spec/coercions/big_decimal_spec.rb |