Example #1
0
 def test_returns_false_on_no_number(self):
     self.assertFalse(_is_negative_num("no-num"))
Example #2
0
 def test_returns_true_on_infinity(self):
     self.assertTrue(_is_negative_num("-INFINITY"))
Example #3
0
 def test_returns_false_on_positive_number(self):
     self.assertFalse(_is_negative_num("10"))
Example #4
0
 def test_returns_true_on_negative_number(self):
     self.assertTrue(_is_negative_num("-10"))