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