-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ballerina-platform/baller…
…ina-lang into issue-37750
- Loading branch information
Showing
413 changed files
with
20,011 additions
and
3,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ballerina-shell/modules/shell-core/src/test/resources/testcases/evaluator/query.action.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[ | ||
{ | ||
"description": "Define nums list.", | ||
"code": "int[] nums = [1, 2, 3, 4];" | ||
}, | ||
{ | ||
"description": "Define numsTimes10 list.", | ||
"code": "int[] numsTimes10 = [];" | ||
}, | ||
{ | ||
"description": "Query action evaluation.", | ||
"code": "error? e = from var i in nums do { numsTimes10.push(i * 10); };" | ||
}, | ||
{ | ||
"description": "Evaluate list.", | ||
"code": "numsTimes10", | ||
"expr": "[10,20,30,40]" | ||
}, | ||
{ | ||
"description": "Define numsTimes20 list.", | ||
"code": "int[] numsTimes20 = [];" | ||
}, | ||
{ | ||
"description": "Query action evaluation.", | ||
"code": "error? e = from var i in nums do { numsTimes20.push(i * 20); };" | ||
}, | ||
{ | ||
"description": "Evaluate list.", | ||
"code": "numsTimes20", | ||
"expr": "[20,40,60,80]" | ||
}, | ||
{ | ||
"description": "Check error vaue.", | ||
"code": "e is error", | ||
"expr": "false" | ||
} | ||
] |
Oops, something went wrong.