(Arne Babenhauserheide)
2013-04-30: added test of flexible parameter lists: define : a . b - with a added test of flexible parameter lists: define : a . b - with a linebreak before the . b
diff --git a/tests/flexible-parameter-list.w b/tests/flexible-parameter-list.w new file mode 100644 --- /dev/null +++ b/tests/flexible-parameter-list.w @@ -0,0 +1,12 @@ +; Test using a . as first parameter on a line by prefixing it with a second . +define + a i + . . b + unless : >= i : length b + display : number->string : length b + display : list-ref b i + newline + apply a ( + i 1 ) b + + +a 0 "123" "345" "567"