Create basic interfaces, see #3, #4, #6

This commit is contained in:
Yohann D'ANELLO
2020-10-09 18:17:41 +02:00
parent bec53dbf1e
commit c2eb3c054c
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import unittest
from dungeonbattle.interfaces import Map
class TestInterfaces(unittest.TestCase):
def test_map(self):
m = Map.load_from_string("ab\ncd\n")
self.assertEqual(m.width, 2)
self.assertEqual(m.height, 2)