Sha256: c2b8a5af7d638b1cf13708eb3d9cdc5a642b53d712ff85acf284cf25dc8d5d99

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

covers 'facets/comparable/cap'

test_case Comparable do

  method :cap do

    test do
      3.cap(4).assert == 3
      4.cap(4).assert == 4
      5.cap(4).assert == 4
    end

  end

  method :at_most do

    test do
      3.at_most(4).assert == 3
      4.at_most(4).assert == 4
      5.at_most(4).assert == 4
    end

  end

  method :at_least do

    test do
      3.at_least(4).assert == 4
      4.at_least(4).assert == 4
      5.at_least(4).assert == 5
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/comparable/test_cap.rb
facets-3.1.0 test/core/comparable/test_cap.rb
facets-3.0.0 test/core/comparable/test_cap.rb
facets-2.9.3 test/core/comparable/test_cap.rb
facets-2.9.2 test/core/comparable/test_cap.rb