4 require File.expand_path(File.dirname(__FILE__) + '/edgecase')
6 class AboutAsserts < EdgeCase::Koan
8 # We shall contemplate truth by testing reality, via asserts.
10 assert false # This should be true
13 # Enlightenment may be more easily achieved with appropriate
15 def test_assert_with_message
16 assert false, "This should be true -- Please fix this"
19 # To understand reality, we must compare our expectations against
21 def test_assert_equality
25 assert expected_value == actual_value
28 # Some ways of asserting equality are better than others.
29 def test_a_better_way_of_asserting_equality
33 assert_equal expected_value, actual_value
36 # Sometimes we will ask you to fill in the values
37 def test_fill_in_values
38 assert_equal __, 1 + 1