def test_muGreaterThanZero(self):
		try:
			score(2, 0, 0)
		except ValueError:
			assert 1
		else:
			assert 0
			
		try:
			score(2, -1, 0)
		except ValueError:
			assert 1
		else:
			assert 0
Beispiel #2
0
    def test_muGreaterThanZero(self):
        try:
            score(2, 0, 0)
        except ValueError:
            assert 1
        else:
            assert 0

        try:
            score(2, -1, 0)
        except ValueError:
            assert 1
        else:
            assert 0
	def test_musquaredTrue(self):
		assert score(2, 2, 1) == -8
	def test_musquaredFalse(self):
		assert score(2, 2, 0) == -4
	def test_whenValueOne(self):
		assert score(1, 1, 0) == 0
Beispiel #6
0
 def test_musquaredTrue(self):
     assert score(2, 2, 1) == -8
Beispiel #7
0
 def test_musquaredFalse(self):
     assert score(2, 2, 0) == -4
Beispiel #8
0
 def test_whenValueOne(self):
     assert score(1, 1, 0) == 0