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,13 +7,13 @@ class AboutAsserts < EdgeCase::Koan
|
||||
|
||||
# We shall contemplate truth by testing reality, via asserts.
|
||||
def test_assert_truth
|
||||
assert __(true) # This should be true
|
||||
assert true # This should be true
|
||||
end
|
||||
|
||||
# Enlightenment may be more easily achieved with appropriate
|
||||
# messages.
|
||||
def test_assert_with_message
|
||||
assert __(true), "This should be true -- Please fix this"
|
||||
assert false, "This should be true -- Please fix this"
|
||||
end
|
||||
|
||||
# To understand reality, we must compare our expectations against
|
||||
|
||||
Reference in New Issue
Block a user