Merged src directory with existing koans.

This commit is contained in:
Jim Weirich
2009-12-21 16:17:32 -05:00
parent c651dd5eba
commit f05d9ee1ac
21 changed files with 82 additions and 69 deletions

View File

@@ -7,7 +7,7 @@ class AboutAsserts < EdgeCase::Koan
# We shall contemplate truth by testing reality, via asserts.
def test_assert_truth
assert false # This should be true
assert true # This should be true
end
# Enlightenment may be more easily achieved with appropriate
@@ -19,7 +19,7 @@ class AboutAsserts < EdgeCase::Koan
# To understand reality, we must compare our expectations against
# reality.
def test_assert_equality
expected_value = 3
expected_value = __
actual_value = 1 + 1
assert expected_value == actual_value
@@ -27,7 +27,7 @@ class AboutAsserts < EdgeCase::Koan
# Some ways of asserting equality are better than others.
def test_a_better_way_of_asserting_equality
expected_value = 3
expected_value = __
actual_value = 1 + 1
assert_equal expected_value, actual_value