Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (25 sloc) 650 Bytes
##
# FalseClass ISO Test
assert('FalseClass', '15.2.6') do
assert_equal Class, FalseClass.class
end
assert('FalseClass false', '15.2.6.1') do
assert_false false
assert_equal FalseClass, false.class
assert_false FalseClass.method_defined? :new
end
assert('FalseClass#&', '15.2.6.3.1') do
assert_false false.&(true)
assert_false false.&(false)
end
assert('FalseClass#^', '15.2.6.3.2') do
assert_true false.^(true)
assert_false false.^(false)
end
assert('FalseClass#to_s', '15.2.6.3.3') do
assert_equal 'false', false.to_s
end
assert('FalseClass#|', '15.2.6.3.4') do
assert_true false.|(true)
assert_false false.|(false)
end
Something went wrong with that request. Please try again.