(Arne Babenhauserheide)
2014-01-21: added explicit test for colon-syntax added explicit test for colon-syntax
diff --git a/tests/syntax-colon.scm b/tests/syntax-colon.scm new file mode 100644 --- /dev/null +++ b/tests/syntax-colon.scm @@ -0,0 +1,24 @@ +(let + ( + (a 1) + (b 2)) + (let + ( + ( + c 3)) + (format #t "a: ~A, b: ~A, c: ~A" + a b c))) + +((a)) + +(define (hello) + (display "hello")) + +(let + ((a 1) + (b 2)) + (format #t "a: ~A, b: ~A" + a b)) + + + diff --git a/tests/syntax-colon.w b/tests/syntax-colon.w new file mode 100644 --- /dev/null +++ b/tests/syntax-colon.w @@ -0,0 +1,22 @@ +let + : + a 1 + b 2 + let + : + : + . c 3 + format #t "a: ~A, b: ~A, c: ~A" + . a b c + +: a + +define : hello + display "hello" + +let + : a 1 + b 2 + format #t "a: ~A, b: ~A" + . a b +