Did I find the right examples for you? yes no

All Samples(21)  |  Call(3)  |  Derive(0)  |  Import(18)

src/c/h/Checkers-HEAD/UnitTest.py   Checkers(Download)
# Unit Tests
# Josh Scotland
 
import GameState
import unittest
    def testGameBegin(self):
        gs = GameState()
        self.assertEqual(gs.get_state(), 0)
 
    def testBlacksTurn(self):
        gs = GameState()
    def testReset(self):
        gs = GameState()
        gs.set_state(gs.BlacksTurn)
        gs.reset()
        self.assertEqual(gs.get_state(), 0)