Sha256: 83a0b19cd90841e64ccc4150739bdcb4e0961fdb8f9b39e350a33ab08e7ad2a1

Contents?: true

Size: 315 Bytes

Versions: 9

Compression:

Stored size: 315 Bytes

Contents

require File.join( File.dirname(__FILE__), "test_helper")

require 'gf_utilities/numeric.rb'

class TCNumeric < Test::Unit::TestCase

  def test_simple
    assert_equal "10", 10.with_separator
    assert_equal "10.0", 10.0.with_separator
    assert_equal "1,000,000", 1000000.with_separator
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gf-treevisitor-0.0.10 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.11 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.12 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.13 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.15 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.16 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.18 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.19 test/gf_utilities/tc_numeric.rb
gf-treevisitor-0.0.8 test/gf_utilities/tc_numeric.rb