summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/testsuite.py b/testsuite.py
index 0f42d69..f70c7e9 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -467,7 +467,7 @@ def run_selftests():
verify_eval_bad("|| X")
- print("Testing Symbol.__str__()")
+ print("Testing Symbol.__str__() and def_{int,hex,string}")
def verify_str(item, s):
verify_equal(str(item), s[1:])
@@ -545,6 +545,16 @@ config INT
range 1 2
range FOO BAR
range BAZ QAZ if DEP
+ default 7 if DEP
+""")
+
+ verify_str(c.syms["HEX"], """
+config HEX
+ hex
+ range 0x100 0x200
+ range FOO BAR
+ range BAZ QAZ if DEP
+ default 0x123
""")
verify_str(c.modules, """