コード例 #1
0
ファイル: test_ann.py プロジェクト: jamesjc1998/Axelrod2
class TestSplitWeights(unittest.TestCase):
    def test_split_weights(self):
        with self.assertRaises(ValueError):
            split_weights([0] * 20, 12, 10)
    # Doesn't Raise
    split_weights([0] * 70, 5, 10)
    split_weights([0] * 12, 10, 1)
コード例 #2
0
 def test_split_weights(self):
     with self.assertRaises(ValueError):
         split_weights([0] * 20, 12, 10)
コード例 #3
0
ファイル: test_ann.py プロジェクト: Nikoleta-v3/Axelrod
 def test_split_weights(self):
     with self.assertRaises(ValueError):
         split_weights([0] * 20, 12, 10)