Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
parenscript
parenscript
Commits
18e30d47
Verified
Commit
18e30d47
authored
Apr 11, 2020
by
Vladimir Sedach
Browse files
Added unit test for
83e1cda7
fix for LOOP collect redundant initialization
parent
161d6160
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/output-tests.lisp
View file @
18e30d47
...
...
@@ -867,6 +867,18 @@ for (var _js1 = 0; _js1 < _js2; _js1 += 1) {
return collect3;
})();"
)
(
test-ps-js
loop-collect-twice
(
loop
collect
x
collect
(
1+
x
))
"(function () {
var collect1 = [];
while (true) {
collect1.push(x);
collect1.push(x + 1);
};
__PS_MV_REG = [];
return collect1;
})();"
)
(
test-ps-js
loop-append
(
loop
:for
a
:in
b
:append
a
)
"(function () {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment