test/test_maybe.rb in funkr-0.0.30 vs test/test_maybe.rb in funkr-0.0.40

- old
+ new

@@ -14,11 +14,10 @@ M.nothing end def test_map assert_equal(j(6), j(5).map{|v| v+1 }) - assert_equal(n, j(5).map{|v| v+1}) end def test_curry_lift f = M.curry_lift_proc{|x,y| x + y} assert_equal(j(8), f.apply(j(5)).apply(j(3))) @@ -55,10 +54,12 @@ assert_equal(j(-1), j(5) <=> j(7)) assert_equal(j(1), j(2) <=> j(1)) assert_equal(j(true), j(3) < j(7)) assert_equal(n, j(4) <=> n) assert_equal(n, n <=> j(2)) + assert_equal(j(false), j(5).applicative_equal?(j(7))) end + def test_unbox assert_equal(5, j(5).unbox) assert_equal(5, j(5).unbox(2)) assert_equal(nil, n.unbox)