Sha256: d84aae769722c0ba5e86dc13c0e239556e771b8f5ee2cde84521b3502bc46a69

Contents?: true

Size: 209 Bytes

Versions: 7

Compression:

Stored size: 209 Bytes

Contents

require 'facets/integer/length'
require 'test/unit'


class TC_Integer < Test::Unit::TestCase
  def test_length
    (0..10).each do |power|
      assert((10 ** power).length == (power + 1))
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/integer/test_length.rb
facets-2.8.3 test/core/integer/test_length.rb
facets-2.8.2 test/core/integer/test_length.rb
facets-2.8.1 test/core/integer/test_length.rb
facets-2.8.0 test/core/integer/test_length.rb
facets-2.7.0 test/core/integer/test_length.rb
facets-2.6.0 test/core/integer/test_length.rb