spec/number_formatting_spec.rb in ffi-icu-0.4.0 vs spec/number_formatting_spec.rb in ffi-icu-0.4.1
- old
+ new
@@ -67,8 +67,13 @@
curf = NumberFormatting.create('en-US', :currency, style: :default)
expect(curf.format(1_000.12, 'USD')).to eq('$1,000.12')
expect { NumberFormatting.create('en-US', :currency, style: :iso) }.to raise_error(StandardError)
end
end
+
+ it 'should format a bignum' do
+ str = NumberFormatting.format_number("en", 1_000_000_000_000_000_000_000_000_000_000_000_000_000)
+ expect(str).to eq('1,000,000,000,000,000,000,000,000,000,000,000,000,000')
+ end
end
end # NumberFormatting
end # ICU