This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import unittest | |
from time import sleep | |
import solution | |
class TestSocialGraph(unittest.TestCase): | |
def setUp(self): | |
self.terry = solution.User("Terry Gilliam") | |
self.eric = solution.User("Eric Idle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from tic_tac_toe import ( | |
Board, IllegalMoveError, WrongTurnError, ChangeMoveError, | |
GameEndError, | |
IN_PROGRESS, X_WON, O_WON, DRAW, X, O, EMPTY as E) | |
class TestBoard(unittest.TestCase): | |
def setUp(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
import solution | |
class Test_every_operator(unittest.TestCase): | |
def test_every_operator(self): | |
a = solution.create_variable('a') | |
b = solution.create_variable('b') | |
x = ((((5 // b) << (5 % b)) ** b) >> (((5 | b) - (5 & b)) ^ b)) |