Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
ion
Commits
b0e7becb
Commit
b0e7becb
authored
7 years ago
by
aimof
Browse files
Options
Downloads
Patches
Plain Diff
Add tests to #638 array parsing issue
cases array length is 0 or 1.
parent
f9b8b95e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!678
Add tests to #638 array parsing issue
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/arrays.ion
+8
-0
8 additions, 0 deletions
examples/arrays.ion
examples/arrays.out
+2
-0
2 additions, 0 deletions
examples/arrays.out
with
10 additions
and
0 deletions
examples/arrays.ion
+
8
−
0
View file @
b0e7becb
# Standard Arrays
# Standard Arrays
let array = []
echo @array
let array = [1]
for i in @array
echo $i
end
let array = [1 [2 3] 4 [5 6]]
let array = [1 [2 3] 4 [5 6]]
for i in @array
for i in @array
echo $i
echo $i
...
...
This diff is collapsed.
Click to expand it.
examples/arrays.out
+
2
−
0
View file @
b0e7becb
1
1
1
2
2
3
3
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment