Sha256: 00a43330eaa7f4af84e9404c22e9878ce0cfdb3635a6e3bd81210ee1a013ab68
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
covers 'facets/comparable/bound' tests Comparable do unit :bound => 'single argument' do 3.bound(4).assert == 4 4.bound(4).assert == 4 5.bound(4).assert == 5 end unit :bound => 'two arguments' do 4.bound(3,5).assert == 4 3.bound(3,5).assert == 3 5.bound(3,5).assert == 5 2.bound(3,5).assert == 3 6.bound(3,5).assert == 5 end unit :bound => 'on strings' do 'd'.bound('c','e').assert == 'd' 'c'.bound('c','e').assert == 'c' 'e'.bound('c','e').assert == 'e' 'b'.bound('c','e').assert == 'c' 'f'.bound('c','e').assert == 'e' end end
Version data entries
4 entries across 4 versions & 1 rubygems