Updated first test to properly fail on the first run.
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 true # This should be true
|
||||
assert false # This should be true
|
||||
end
|
||||
|
||||
# Enlightenment may be more easily achieved with appropriate
|
||||
|
||||
@@ -7,7 +7,14 @@ class AboutAsserts < EdgeCase::Koan
|
||||
|
||||
# We shall contemplate truth by testing reality, via asserts.
|
||||
def test_assert_truth
|
||||
#--
|
||||
assert true # This should be true
|
||||
if false
|
||||
#++
|
||||
assert false # This should be true
|
||||
#--
|
||||
end
|
||||
#++
|
||||
end
|
||||
|
||||
# Enlightenment may be more easily achieved with appropriate
|
||||
|
||||
Reference in New Issue
Block a user