Sha256: 7583f9fefaa404d66c8180a70dae39256efcd489ad99ea44e016f259d2ed2ede

Contents?: true

Size: 585 Bytes

Versions: 3

Compression:

Stored size: 585 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),'helper.rb'))

class TestQualified <  Test::Unit::TestCase # < Minitest::Test

  def test_qualified_use
    assert_equal '1', Numerals::Format[].write(1.0)
    assert_equal '1.00', Numerals::Format[Numerals::Rounding[precision: 3]].write(1.0)
    assert_equal '1.000', Numerals::Format[Numerals::Rounding[places: 3]].write(1.0)
    assert_equal '1234567.1234', Numerals::Format[rounding: :short].write(1234567.1234)
    assert_equal '1234567.123', Numerals::Format[Numerals::Rounding[places: 3]].write(1234567.1234)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numerals-0.3.1 test/test_qualified.rb
numerals-0.3.0 test/test_qualified.rb
numerals-0.2.1 test/test_qualified.rb