Beispiel #1
0
	def test_some(self):
		algorithm = Algorithm(MatrixHandler([]))
		self.assertEqual(
			self.expected_element, algorithm._some(self.sequence)
		)
Beispiel #2
0
	def test_some_negative(self):
		algorithm = Algorithm(MatrixHandler([]))
		self.assertFalse(algorithm._some(self.sequence_negative))
Beispiel #3
0
	def test_cross(self):
		algorithm = Algorithm(MatrixHandler([]))
		self.assertEqual(self.crossAB, algorithm._cross(self.A, self.B))