summaryrefslogtreecommitdiff
path: root/tests/test_reader.py
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2017-11-14 02:51:27 -0500
committerOwen Jacobson <owen@grimoire.ca>2017-11-14 02:51:27 -0500
commit6ab0fb837e5b1cc40002037e2ed15505f99cbbe3 (patch)
treed7fbc91d82588af74b5f4a931c7ba3344f63ab41 /tests/test_reader.py
parent10dad94b84ae0a41b1ff03d6d705732834958efb (diff)
Macro expander.
This includes a fairly complete quasiquote system, and a complete rework of the expander.
Diffstat (limited to 'tests/test_reader.py')
-rw-r--r--tests/test_reader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_reader.py b/tests/test_reader.py
index 54a1681..b67c05e 100644
--- a/tests/test_reader.py
+++ b/tests/test_reader.py
@@ -12,7 +12,7 @@ from .forms import *
# * Given a form, can the reader recover it from its display?
@given(forms())
def test_reader(form):
- input = display(form)
+ input = display(form, symbol_table)
port = string_to_input_port(input)
assert read(port, symbol_table) == form
@@ -21,7 +21,7 @@ def test_reader(form):
# without touching the garbage? This is only reliable with lists and conses.
@given(lists() | conses(), text())
def test_reader_with_trailing(form, text):
- input = display(form) + text
+ input = display(form, symbol_table) + text
port = string_to_input_port(input)
assert read(port, symbol_table) == form