Unicode texture pack is squirrel texture pack
This commit is contained in:
parent
b5b76fd07b
commit
dbd5f6a1fd
|
@ -1,5 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
from dungeonbattle.display.texturepack import TexturePack
|
||||||
from dungeonbattle.interfaces import Map, Tile
|
from dungeonbattle.interfaces import Map, Tile
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,10 +9,10 @@ class TestInterfaces(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
Create a map and check that it is well parsed.
|
Create a map and check that it is well parsed.
|
||||||
"""
|
"""
|
||||||
m = Map.load_from_string(".█\n█.\n")
|
m = Map.load_from_string(".#\n#.\n")
|
||||||
self.assertEqual(m.width, 2)
|
self.assertEqual(m.width, 2)
|
||||||
self.assertEqual(m.height, 2)
|
self.assertEqual(m.height, 2)
|
||||||
self.assertEqual(m.draw_string(), ".█\n█.")
|
self.assertEqual(m.draw_string(TexturePack.ASCII_PACK), ".#\n#.")
|
||||||
|
|
||||||
def test_load_map(self) -> None:
|
def test_load_map(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -23,10 +23,10 @@ class TestSettings(unittest.TestCase):
|
||||||
self.assertEqual(settings.get_comment(settings.TEXTURE_PACK),
|
self.assertEqual(settings.get_comment(settings.TEXTURE_PACK),
|
||||||
'Pack de textures utilisé')
|
'Pack de textures utilisé')
|
||||||
|
|
||||||
settings.TEXTURE_PACK = 'UNICODE'
|
settings.TEXTURE_PACK = 'squirrel'
|
||||||
self.assertEqual(settings.TEXTURE_PACK, 'UNICODE')
|
self.assertEqual(settings.TEXTURE_PACK, 'squirrel')
|
||||||
|
|
||||||
settings.write_settings()
|
settings.write_settings()
|
||||||
settings.load_settings()
|
settings.load_settings()
|
||||||
|
|
||||||
self.assertEqual(settings.TEXTURE_PACK, 'UNICODE')
|
self.assertEqual(settings.TEXTURE_PACK, 'squirrel')
|
||||||
|
|
Loading…
Reference in New Issue