Move tests in a new directory, closes #8

This commit is contained in:
Yohann D'ANELLO
2020-11-06 15:13:18 +01:00
parent 58c77fa5bf
commit e00d98739a
3 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import unittest
from dungeonbattle.interfaces import Map
class TestInterfaces(unittest.TestCase):
def test_map(self) -> None:
"""
Create a map and check that it is well parsed.
"""
m = Map.load_from_string(".█\n█.\n")
self.assertEqual(m.width, 2)
self.assertEqual(m.height, 2)
self.assertEqual(m.draw_string(), ".█\n█.")