Skip to content

Commit

Permalink
Update function invocation tests
Browse files Browse the repository at this point in the history
They're still broken because the CSV parsing commas and function
invocation commas conflict
  • Loading branch information
prabhanshuguptagit committed Jun 29, 2024
1 parent 0740d75 commit 8d62f7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/bean/parser/trellis_parser.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"Note: This doesn't bother with escaping yet. Fragile & breaks with any excess '%'"

"
TrellisFile = Program <SectionSep> CommaSeparatedContent <SectionSep> TestProgram
TrellisFile = Program <SectionSep> CommaSeparatedContent <SectionSep> TestProgram ['\n']
SectionSep = '\n'+ '%' '\n'+
")

Expand Down Expand Up @@ -62,4 +62,4 @@
parser/expression-grammer])))

(defn parse-tests [content]
(insta/parse tests-parser content))
(insta/parse tests-parser content))
4 changes: 2 additions & 2 deletions test/trellis/function_invocation.leaf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

%

1,=concat("hello " A1 A2),
1,=concat("hello ","1","2"),
2,,
=A1+A2,,
=A3+1,,
Expand All @@ -12,4 +12,4 @@
B1="hello 12"
A3=3
A4=4
A5=20
A5=20
4 changes: 2 additions & 2 deletions test/trellis/inlined_function_invocation.leaf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

%

1,={x+y+z}(9 A1 A2)
1,={x+y+z}(9,A1,A2)
2,

%

A1=1
A2=2
B1=12
B1=12

0 comments on commit 8d62f7a

Please sign in to comment.