summary refs log tree commit diff
path: root/tests/test.mew
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.mew')
-rw-r--r--tests/test.mew6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test.mew b/tests/test.mew
index 98ad5fa..904127d 100644
--- a/tests/test.mew
+++ b/tests/test.mew
@@ -234,6 +234,12 @@
               (while (> y 0)
                 (set x (+ x y))
                 (set y (dec y)))
+              x))
+  (test 42 (loc (x 27 y 5)
+              (while (> y 0)
+                (def z (+ x y))
+                (set x z)
+                (set y (dec y)))
               x)))
 
 (test-group "until"