Exemple #1
0
 def test_last(self):
     t1 = UnorderedTree([self.t3_2, self.t3_2])
     result = symp_split(t1)
     t2 = UnorderedTree([self.t3_2, self.t2_1])
     expected = LinearCombination()
     expected[t2] = 4
     self.assertEqual(expected, result)
Exemple #2
0
 def test_seventeenth(self):
     result = symp_split(self.t5_9)
     expected = LinearCombination()
     expected[self.t4_4] = 4
     self.assertEqual(expected, result)
Exemple #3
0
 def test_thirteenth(self):
     result = symp_split(self.t5_5)
     expected = LinearCombination()
     expected[self.t4_1] = 1
     expected[self.t4_3] = 1
     self.assertEqual(expected, result)
Exemple #4
0
 def test_sixthteenth(self):
     result = symp_split(self.t5_8)
     expected = LinearCombination()
     expected[self.t4_4] = 1
     expected[self.t4_3] = 2
     self.assertEqual(expected, result)
Exemple #5
0
 def test_eleventh(self):
     result = symp_split(self.t5_3)
     expected = LinearCombination()
     expected[self.t4_1] = 1
     expected[self.t4_2] = 1
     self.assertEqual(expected, result)
Exemple #6
0
 def test_twelfth(self):
     result = symp_split(self.t5_4)
     expected = LinearCombination()
     expected[self.t4_2] = 3
     self.assertEqual(expected, result)
Exemple #7
0
 def test_tenth(self):
     result = symp_split(self.t5_2)
     expected = LinearCombination()
     expected[self.t4_1] = 2
     self.assertEqual(expected, result)
Exemple #8
0
 def test_fifth(self):
     result = symp_split(self.t4_1)
     expected = LinearCombination()
     expected[self.t3_1] = 1
     self.assertEqual(expected, result)
Exemple #9
0
 def test_fourth(self):
     result = symp_split(self.t3_2)
     expected = LinearCombination()
     expected[self.t2_1] = 2
     self.assertEqual(expected, result)
Exemple #10
0
 def test_second(self):
     result = symp_split(self.t2_1)
     expected = LinearCombination()
     expected += self.t1_1
     self.assertEqual(expected, result)
Exemple #11
0
 def test_first(self):
     result = symp_split(self.t1_1)
     expected = LinearCombination()  # TODO: right way to do it?
     self.assertEqual(expected, result)