Verified Commit 27a9ab2e authored by Jason Miller's avatar Jason Miller Committed by Vladimir Sedach
Browse files

Add tests for limitless for-as-arithmetic loop

parent ae50fb10
......@@ -652,6 +652,20 @@ while (film.isNotFinished()) {
};
}).call(this);")
(test-ps-js iteration-constructs-10
(loop for i from 1 while (foo))
"(function () {
for (var i = 1; foo(); i += 1) {
};
})();")
(test-ps-js iteration-constructs-11
(loop for i from 1)
"(function () {
for (var i = 1; true; i += 1) {
};
})();")
(test-ps-js loop-for-bindings
(loop :for ((a b) (:c :d)) :in arr :do (foo a b c d))
"(function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment