Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Revision | 7dbab792d37e98e9249253f61835423f9939fa77 (tree) |
---|---|
Zeit | 2022-01-02 04:38:16 |
Autor | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
Refactored tests: no more adding AST dir in test-file, as it is in init
@@ -1,8 +1,6 @@ | ||
1 | 1 | import pytest |
2 | 2 | |
3 | 3 | import grammar |
4 | - | |
5 | -import sys; sys.path.append("./../AST/") ; sys.path.append("./../../AST/") | |
6 | 4 | from castle import peg # has the AST clases |
7 | 5 | |
8 | 6 | from . import parse |
@@ -1,13 +1,10 @@ | ||
1 | 1 | import pytest |
2 | 2 | |
3 | 3 | import grammar |
4 | - | |
5 | -import sys; sys.path.append("./../AST/") ; sys.path.append("./../../AST/") | |
6 | 4 | from castle import peg # has the AST clases |
7 | 5 | |
8 | 6 | from . import parse, assert_ID |
9 | 7 | |
10 | - | |
11 | 8 | def test_rule_name(): |
12 | 9 | """The name of a rule is an ID""" |
13 | 10 |
@@ -1,13 +1,10 @@ | ||
1 | 1 | import pytest |
2 | 2 | |
3 | 3 | import grammar |
4 | - | |
5 | -import sys; sys.path.append("./../AST/") ; sys.path.append("./../../AST/") | |
6 | 4 | from castle import peg # has the AST clases |
7 | 5 | |
8 | 6 | from . import parse, assert_ID |
9 | 7 | |
10 | - | |
11 | 8 | def test_trivial_rule_with_2IDS(): |
12 | 9 | """The most simple rule has only two IDs""" |
13 | 10 |