diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/010/span-var.txr | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/010/span-var.txr b/tests/010/span-var.txr new file mode 100644 index 00000000..5f5faa6c --- /dev/null +++ b/tests/010/span-var.txr @@ -0,0 +1,15 @@ +@(define fun (x y)) +@(bind x "x") +@y +@y +@y +@(end) +@(next :list '("a" "a" "a" "b" "c")) +@{z (fun x "a")} +@(require (equal x "x")) +@(require (equal z '("a" "a" "a"))) +@(define fun2 (x y))@(bind x "x")@y@(end) +@(next :string "ab") +@{w (fun2 x "a")}@y +@(require (equal w "a")) +@(require (equal y "b")) |