big time reset, we are not using TMX anymore, but instead using the JS 
format because it is way simpler to parse
This commit is contained in:
Benjamin Kirkbride
2020-05-01 19:19:08 -04:00
parent 03d70163f4
commit 4ff013c1f8
23 changed files with 87 additions and 4 deletions

View File

@@ -1,19 +0,0 @@
"""Tests for typing helpers"""
import pytest
from pytiled_parser import typing_helpers as TH
TEST_IS_FLOAT_PARAMS = [
(1, True),
("1", True),
(1.1, True),
("1.1", True),
("one", False),
(None, False),
]
@pytest.mark.parametrize("string,expected", TEST_IS_FLOAT_PARAMS)
def test_is_float(string, expected):
assert TH.is_float(string) == expected