11 lines
245 B
Python
11 lines
245 B
Python
|
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)
|