Moved the parts of network out of server.
Partly added extensions to tic-tac-toe py.
This commit is contained in:
parent
f59d59814a
commit
71fa6f30ba
10 changed files with 237 additions and 74 deletions
14
games/tic-tac-toe/test_data.py
Normal file
14
games/tic-tac-toe/test_data.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import unittest
|
||||
import data
|
||||
|
||||
|
||||
class TestData(unittest.TestCase):
|
||||
def setUp(self):
|
||||
array = [0,1,1,1,3,4,5,2,2,3,3,3,3,3,33,4,2,2]
|
||||
|
||||
self.assertTrue(data.greatest_sequence(array, 3) == 5)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
|
Reference in a new issue