コード例 #1
0
ファイル: test_expressions.py プロジェクト: gjhiggins/quepy
 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))
コード例 #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))
コード例 #3
0
ファイル: test_expressions.py プロジェクト: gjhiggins/quepy
 def test_are_the_same(self):
     a = make_canonical_expression(self.a)
     b = make_canonical_expression(self.b)
     self.assertNotEqual(a, b)
コード例 #4
0
 def test_are_the_same(self):
     a = make_canonical_expression(self.a)
     b = make_canonical_expression(self.b)
     self.assertNotEqual(a, b)