Sha256: afd98bf91e220787d472eb8c97c3740b113d53e148c8cd535afadbae2743b00b
Contents?: true
Size: 340 Bytes
Versions: 3
Compression:
Stored size: 340 Bytes
Contents
require 'facets/numeric/spacing' require 'test/unit' class TC_Numeric_spacing < Test::Unit::TestCase def test_spacing samples = [-10.5, -3, 3, 1.0e14, 10000, 14.5e10] samples.each do |numeric_item| assert numeric_item.to_s.size == numeric_item.spacing assert numeric_item.spacing.kind_of?(Integer) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.8.4 | test/core/numeric/test_spacing.rb |
facets-2.8.3 | test/core/numeric/test_spacing.rb |
facets-2.8.2 | test/core/numeric/test_spacing.rb |