Skip to content

Commit

Permalink
added data source support
Browse files Browse the repository at this point in the history
  • Loading branch information
dprzybyl committed Oct 9, 2023
1 parent e401111 commit 33f6bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ class ScriptRunnerTest extends Specification {
"Executing command SHOW [3, \"ab\"]",
"Executing command SHOW [\"a\", \"b\", \"c\", \"d\", 1, 2]",
"Executing command SHOW [\n\t[\"a\", \"b\"],\n\t[\"c\", \"d\"]\n]",
"Executing command SHOW 3",
"Executing command SHOW 6",
"Executing command SHOW \"a\"",
"Executing command SHOW \"b\"",
"Executing command SHOW \"C\"",
Expand Down
3 changes: 3 additions & 0 deletions app/aem/core/src/test/resources/define.apm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ DEFINE tab3 [['a', 'b'], ['c', 'd']]
DEFINE obj {x:'a', y:1, z:['c', 1], 't':'t'}
DEFINE tabEnum [a, b, "c", "d", 1, 2]
DEFINE tab4 [1 + 2, "a" + "b"]
DEFINE tabNested [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
DEFINE func FUNC('a')
DEFINE funcTab [FUNC('b'), UPPER('c')]
DEFINE funcSum UPPER('a') + UPPER('b') + 1
Expand All @@ -64,6 +65,8 @@ SHOW ${obj[t]}
SHOW $tab4
SHOW $tabEnum
SHOW $tab3
SHOW $tabNested[0][1][0]
SHOW $tabNested[1][0][1]
SHOW $func
SHOW $funcTab[0]
SHOW $funcTab[1]
Expand Down

0 comments on commit 33f6bac

Please sign in to comment.