Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
d912df9e
Commit
d912df9e
authored
Jul 02, 2020
by
Maxime Perrotin
Browse files
Fix regression
parent
9764a438
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/testsuite/test-strings/og.pr
View file @
d912df9e
...
...
@@ -31,30 +31,28 @@ system og;
/* CIF ENDTEXT */
/* CIF START (639, 63), (70, 35) */
START;
/* CIF PROCEDURECALL (624, 118), (98, 35) */
call writeln(a(0));
/* CIF task (581, 168), (185, 35) */
/* CIF task (581, 118), (185, 35) */
task result := result // 'Hello!';
/* CIF task (623,
2
19), (102, 35) */
/* CIF task (623, 1
6
9), (102, 35) */
task result := '';
/* CIF task (459, 2
6
9), (429, 78) */
/* CIF task (459, 2
1
9), (429, 78) */
task for each in a(2, length(a) - 1):
result := result // (if length(result) > 0 then sep else nosep fi) // each
endfor
/* CIF comment (907, 2
9
0), (70, 35) */
/* CIF comment (907, 2
4
0), (70, 35) */
comment 'pop ';
/* CIF PROCEDURECALL (609, 3
6
2), (129, 35) */
/* CIF PROCEDURECALL (609, 3
1
2), (129, 35) */
call writeln(result);
/* CIF task (596,
41
7), (155, 56) */
/* CIF task (596,
36
7), (155, 56) */
task for sep2 in a:
call writeln(sep2);
endfor
/* CIF comment (771,
42
7), (194, 40) */
/* CIF comment (771,
37
7), (194, 40) */
comment 'Test to check scope
(sep is also a dcl-variable)';
/* CIF PROCEDURECALL (509, 4
9
1), (330, 35) */
/* CIF PROCEDURECALL (509, 4
4
1), (330, 35) */
call writeln('String literal (should be "hello"):', strlit);
/* CIF NEXTSTATE (639,
5
41), (70, 35) */
/* CIF NEXTSTATE (639, 4
9
1), (70, 35) */
NEXTSTATE wait;
/* CIF state (366, 217), (70, 35) */
state wait;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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