Skip to content

Commit

Permalink
Add test for #183
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Jan 12, 2024
1 parent e153820 commit 82ecd3c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/test_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,20 @@ def test_geomtransform_nested_function():
assert output(s, schema_name="leader") == exp


def test_class_regex_expression():
s = """
CLASS
EXPRESSION /*1/
STYLE
COLOR 0 255 0
END
END"""

print(output(s, schema_name="class"))
exp = "CLASS EXPRESSION /*1/ STYLE COLOR 0 255 0 END END"
assert output(s, schema_name="class") == exp


def run_tests():
r"""
Need to comment out the following line in C:\VirtualEnvs\mappyfile\Lib\site-packages\pep8.py
Expand All @@ -1036,6 +1050,7 @@ def run_tests():
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG)
# test_multiple_compfilters()
test_geomtransform_nested_function()
# test_geomtransform_nested_function()
test_class_regex_expression()
# run_tests()
print("Done!")

0 comments on commit 82ecd3c

Please sign in to comment.