mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-21 01:03:20 -04:00
Merged src directory with existing koans.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user