mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-15 02:54:09 -04:00
add missing attribute.
See https://github.com/shlomif/PySolFC/issues/129 .
This commit is contained in:
parent
8244d19e6e
commit
c7a3907d25
1 changed files with 7 additions and 0 deletions
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
from pysollib.game import GameDrag, GameStacks
|
from pysollib.game import GameDrag, GameStacks
|
||||||
|
=======
|
||||||
|
from pysollib.game import GameDrag
|
||||||
|
>>>>>>> f3d3517... add missing attribute.
|
||||||
|
|
||||||
|
|
||||||
class MyTests(unittest.TestCase):
|
class MyTests(unittest.TestCase):
|
||||||
|
@ -10,9 +14,12 @@ class MyTests(unittest.TestCase):
|
||||||
d = GameDrag()
|
d = GameDrag()
|
||||||
d.shadows.append("test")
|
d.shadows.append("test")
|
||||||
self.assertTrue(len(d.shadows))
|
self.assertTrue(len(d.shadows))
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
def test_addattr(self):
|
def test_addattr(self):
|
||||||
s = GameStacks()
|
s = GameStacks()
|
||||||
s.addattr(tableaux=[])
|
s.addattr(tableaux=[])
|
||||||
s.tableaux.append("myval")
|
s.tableaux.append("myval")
|
||||||
self.assertEqual(s.tableaux, ["myval"])
|
self.assertEqual(s.tableaux, ["myval"])
|
||||||
|
=======
|
||||||
|
>>>>>>> f3d3517... add missing attribute.
|
||||||
|
|
Loading…
Add table
Reference in a new issue