From f346f7e18096d7118b233b9e00b7abce8ac30308 Mon Sep 17 00:00:00 2001 From: Andrew Eskenazi Date: Mon, 21 Nov 2016 15:19:59 -0700 Subject: [PATCH] Filled in the empty blanks * Followed the hints for each line. * Modified 13, 17, 21, 25-30 with either :true_stuff(representing true conditions for the given value) or :false_stuff (representing everything else) [#131336141] --- about_true_and_false.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/about_true_and_false.rb b/about_true_and_false.rb index 0b876ee..e9461ef 100644 --- a/about_true_and_false.rb +++ b/about_true_and_false.rb @@ -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