Permalink
Browse files

true and false done

  • Loading branch information...
1 parent ce910d5 commit 4ea4661e759c829c0229e1345b0d7960f363e7ad @John-Li committed Feb 18, 2012
Showing with 10 additions and 10 deletions.
  1. +1 −1 koans/.path_progress
  2. +9 −9 koans/about_true_and_false.rb
View
@@ -1 +1 @@
-0,1,2,3,5,6,6,7,8,8,9,10,11,12,13,14,15,15,16,17,18,18,19,19,19,19,20,20,21,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,35,36,37,38,38,39,40,41,42,42,42,42,43,43,43,44,44,48,50,50,51,52,53,54,55,56,57,58,58,59,60,60,61,62,63,64,65,66,67,68,69,71,73,74,75,75,76,77,78,79,80,81,82,83,84,84,84,85,87,88,89,89,90,91,92,93,94,94,95,96,97,98,98,99,99,100,101,102,103,103,104,105,106,107,108,109,111,114,114,115,116,116,117,118,119,120,120,121,122,122,123,125,126,127,128,129,130,131,132,133,134,134,135,136,137,138,139,140,141,142,143,144,144,145,146
+0,1,2,3,5,6,6,7,8,8,9,10,11,12,13,14,15,15,16,17,18,18,19,19,19,19,20,20,21,21,22,23,24,25,26,27,28,29,30,31,32,32,33,34,35,35,36,37,38,38,39,40,41,42,42,42,42,43,43,43,44,44,48,50,50,51,52,53,54,55,56,57,58,58,59,60,60,61,62,63,64,65,66,67,68,69,71,73,74,75,75,76,77,78,79,80,81,82,83,84,84,84,85,87,88,89,89,90,91,92,93,94,94,95,96,97,98,98,99,99,100,101,102,103,103,104,105,106,107,108,109,111,114,114,115,116,116,117,118,119,120,120,121,122,122,123,125,126,127,128,129,130,131,132,133,134,134,135,136,137,138,139,140,141,142,143,144,144,145,146,148,149,149,150
@@ -10,24 +10,24 @@ def truth_value(condition)
end
def test_true_is_treated_as_true
- assert_equal __, truth_value(true)
+ assert_equal :true_stuff, truth_value(true)
end
def test_false_is_treated_as_false
- assert_equal __, truth_value(false)
+ assert_equal :false_stuff, truth_value(false)
end
def test_nil_is_treated_as_false_too
- assert_equal __, truth_value(nil)
+ assert_equal :false_stuff, truth_value(nil)
end
def test_everything_else_is_treated_as_true
- assert_equal __, truth_value(1)
- assert_equal __, truth_value(0)
- assert_equal __, truth_value([])
- assert_equal __, truth_value({})
- assert_equal __, truth_value("Strings")
- assert_equal __, truth_value("")
+ assert_equal :true_stuff, truth_value(1)
+ assert_equal :true_stuff, truth_value(0)
+ assert_equal :true_stuff, truth_value([])
+ assert_equal :true_stuff, truth_value({})
+ assert_equal :true_stuff, truth_value("Strings")
+ assert_equal :true_stuff, truth_value("")
end
end

0 comments on commit 4ea4661

Please sign in to comment.