1 require 'rubicon_testcase'
3 class TestComparable < RubiconTestCase
23 def test_00sanity # ZenTest SKIP
24 assert_equal( 0, @a <=> @a)
25 assert_equal( 0, @a <=> @c)
26 assert_equal(-1, @a <=> @b)
27 assert_equal( 1, @b <=> @a)
31 assert( @a.between?(@a, @c))
32 assert(!@a.between?(@b, @c))
33 assert( @b.between?(@a, @b))
34 assert( @b.between?(@a, @d))
35 assert(!@d.between?(@a, @b))
36 assert(!@d.between?(@b, @b))