예제 #1
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
예제 #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
예제 #3
0
	def test_musquaredTrue(self):
		assert score(2, 2, 1) == -8
예제 #4
0
	def test_musquaredFalse(self):
		assert score(2, 2, 0) == -4
예제 #5
0
	def test_whenValueOne(self):
		assert score(1, 1, 0) == 0
예제 #6
0
 def test_musquaredTrue(self):
     assert score(2, 2, 1) == -8
예제 #7
0
 def test_musquaredFalse(self):
     assert score(2, 2, 0) == -4
예제 #8
0
 def test_whenValueOne(self):
     assert score(1, 1, 0) == 0