Sha256: 3a0ad4b21ecf82ef1edb7bf2a2d6dd9e13f4d7013d9b020c2f457f03f3af08b2

Contents?: true

Size: 205 Bytes

Versions: 4

Compression:

Stored size: 205 Bytes

Contents

require 'facets/math/abs'

test_case Math do

  class_method :abs do
    test do
      Math.abs(-3.1).assert == 3.1
      Math.abs( 0.0).assert == 0.0
      Math.abs( 3.1).assert == 3.1
    end
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/standard/math/test_abs.rb
facets-3.1.0 test/standard/math/test_abs.rb
facets-3.0.0 test/standard/math/test_abs.rb
facets-2.9.3 test/standard/math/test_abs.rb