示例#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