Example #1
0
 def test_plus_is_conmutative2(self):
     other = Expression()
     other.decapitate("blabla")
     a = self.e + other + self.e
     b = other + self.e + self.e
     self.assertEqual(make_canonical_expression(a),
                      make_canonical_expression(b))
Example #2
0
 def test_plus_is_conmutative2(self):
     other = Expression()
     other.decapitate("blabla")
     a = self.e + other + self.e
     b = other + self.e + self.e
     self.assertEqual(make_canonical_expression(a),
                      make_canonical_expression(b))
Example #3
0
 def test_are_the_same(self):
     a = make_canonical_expression(self.a)
     b = make_canonical_expression(self.b)
     self.assertNotEqual(a, b)
Example #4
0
 def test_are_the_same(self):
     a = make_canonical_expression(self.a)
     b = make_canonical_expression(self.b)
     self.assertNotEqual(a, b)