Exemple #1
0
 def test_relation_upper_inclusive(self):
     """Test ]"""
     (name, op) = BetweenDict.char_to_relational(']')
     self.assertTrue(op(1,2))
     self.assertTrue(op(1,1.000001))
     self.assertTrue(op(1,1))
     self.assertFalse(op(2,1))
Exemple #2
0
 def test_relation_lower_exclusive(self):
     """Test ("""
     (name, op) = BetweenDict.char_to_relational('(')
     self.assertTrue(op(1,2))
     self.assertFalse(op(1,1))
     self.assertTrue(op(1,1.000001))
     self.assertFalse(op(2,1))