Ejemplo n.º 1
0
    def testCalculateFeaturesReturnsCorrectlySizedArray(self):
        pongGame = Pong()
        numberOfFeatures = 3
        player = 1
        action = NOTHING

        result = len(pongGame.getFeatures(player, action))

        self.assertEqual(numberOfFeatures, result)
Ejemplo n.º 2
0
    def testCalculateFeaturesReturnsNotNoneObjects(self):
        pongGame = Pong()
        player = 1
        action = NOTHING

        result = pongGame.getFeatures(player, action)

        for i in result:
            self.assertIsNotNone(i)