Skip to content

Commit

Permalink
Merge pull request #127 from arnauddupuis/arnauddupuis/issue126
Browse files Browse the repository at this point in the history
Add code coverage for the sprixel support in _obj2ref and _ref2obj.
  • Loading branch information
arnauddupuis committed Oct 11, 2020
2 parents 8f74080 + c625f4c commit 3deb8bd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from pygamelib import base
from pygamelib import board_items
from pygamelib import constants
from pygamelib.gfx import core
import unittest

# Test cases for all classes in pygamelib.gfx.core except for Animation.
Expand Down Expand Up @@ -244,6 +245,15 @@ def test_tools_function(self):
5,
)
)
self.assertIsNone(
b.place_item(
board_items.Door(
value=10, inventory_space=1, sprixel=core.Sprixel("#")
),
2,
2,
)
)
self.assertIsNone(
b.place_item(board_items.Treasure(value=10, inventory_space=1), 1, 6)
)
Expand Down

0 comments on commit 3deb8bd

Please sign in to comment.