Updated RubySpec submodule to 9f66d0b1.
[rbx.git] / test / bfts / test_true_class.rb
blob4daf54ace100d84be2af1224bf1f44527680c79f
1 require 'rubicon_testcase'
3 class TestTrueClass < RubiconTestCase
5   def test_00sanity
6     assert_equal(true,TRUE)
7   end
9   def test_and
10     truth_table(true.method("&"), false, true)
11   end
13   def test_carat
14     truth_table(true.method("^"), true, false)
15   end
17   def test_or
18     truth_table(true.method("|"), true, true)
19   end
21   def test_to_s
22     assert_equal("true", true.to_s)
23     assert_equal("true", TRUE.to_s)
24   end
26   def test_type
27     assert_equal(TrueClass, true.class)
28     assert_equal(TrueClass, TRUE.class)
29   end
31 end