tidy what the fixes wrote around existing helpers
written-type? matches the shapes instead of measuring them, array-form? and pub-form? replace their spelled-out copies, both test files share one fails-with?, and moved test comments are back above their groups.
This commit was merged in pull request #66.
This commit is contained in:
@@ -33,8 +33,9 @@ SEXC ?= ../../sexc
|
||||
EXPECTED = hello, world\nhello, sex\n2 greetings\ntext times \ntext times \nmood 1\nclosure 15 21 201\nvec2 7 7\nvec2(3 4)\ntally 2\nboard 42\nledger 2\ncolour 123
|
||||
|
||||
check:
|
||||
@if [ "`$(SEXC) --public-interface greet.sex | head -3`" != "`printf '(record cell)\n(record ledger)\n(include stdio.h)'`" ]; then \
|
||||
echo "modules FAILED, the interface begins:"; $(SEXC) --public-interface greet.sex | head -3; exit 1; \
|
||||
@head="`$(SEXC) --public-interface greet.sex | head -3`"; \
|
||||
if [ "$$head" != "`printf '(record cell)\n(record ledger)\n(include stdio.h)'`" ]; then \
|
||||
echo "modules FAILED, the interface begins:"; echo "$$head"; exit 1; \
|
||||
fi
|
||||
@$(SEXC) ledger.sex -c -o ledger.o
|
||||
@$(SEXC) greet.sex -c -o greet.o
|
||||
|
||||
Reference in New Issue
Block a user