Beispiel #1
0
	def test_assign_false_if_cotradiction_met(self):
		norvig = Norvig(self.mtrxhandler)
		self.assertFalse(
			norvig._assign(
				self.grid, self.field,
				self.value_with_contradiction
			)
		)
Beispiel #2
0
	def test_assign_value_if_valid(self):
		norvig = Norvig(self.mtrxhandler)
		expected = self.value_valid
		actual = norvig._assign(
			self.grid_possible_values,
			self.field,
			self.value_valid
		)[self.field]
		self.assertEqual(expected, actual)