Sha256: 2a2d454d24f86787ae2235906a283c0fe45f586a1a7aa8b6aaa60dd86aba15bd

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

covers 'facets/comparable/cap'

testcase Comparable do

  unit :at_most do
    3.at_most(4).assert == 3
    4.at_most(4).assert == 4
    5.at_most(4).assert == 4
  end

  unit :at_least do
    3.at_least(4).assert == 4
    4.at_least(4).assert == 4
    5.at_least(4).assert == 5
  end

  unit :cap do
    3.cap(4).assert == 3
    4.cap(4).assert == 4
    5.cap(4).assert == 4
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/comparable/test_cap.rb
facets-2.9.0 test/core/comparable/test_cap.rb
facets-2.9.0.pre.2 test/core/comparable/test_cap.rb
facets-2.9.0.pre.1 test/core/comparable/test_cap.rb