diff options
Diffstat (limited to 'test/test_parse_sexpr.py')
-rw-r--r-- | test/test_parse_sexpr.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_parse_sexpr.py b/test/test_parse_sexpr.py new file mode 100644 index 0000000..4a97507 --- /dev/null +++ b/test/test_parse_sexpr.py @@ -0,0 +1,12 @@ +import pytest +import os.path +import ee.kicad.sexpr as sexpr + +basedir = os.path.dirname(os.path.abspath(__file__)) + +def test_parsing(): + path = os.path.join(basedir, "kicad_pcb/parser-1.kicad_pcb") + count = 0 + for (event, token) in sexpr.parse(path): + count = count + 1 + assert count == 3657 |