repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Removed obsolete bin scripts.
[rbx.git]
/
test
/
bfts
/
overlay
/
rubicon_testcase.rb
blob
7ae226af81c71502f063fafb7766ea7938876ccf
1
class RubiconTestCase < Test::Unit::TestCase
2
3
def truth_table(method, *result)
4
[false, true].each do |a|
5
expected = result.shift
6
assert_equal(expected, method.call(a))
7
assert_equal(expected, method.call(a ? self : nil))
8
end
9
end
10
11
end