Skip to content

Commit

Permalink
Added tests for inject() grammar parsing CTR
Browse files Browse the repository at this point in the history
  • Loading branch information
spmallette committed Oct 31, 2024
1 parent 77c77e0 commit c31430e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ private void compare(Object expected, Object actual) {

@Test
public void shouldParseTraversalSourceSpawnMethod_inject() {
compare(g.inject(), eval("g.inject()"));
compare(g.inject(null), eval("g.inject(null)"));
compare(g.inject(null, null), eval("g.inject(null, null)"));
compare(g.inject(null, 1), eval("g.inject(null, 1)"));
compare(g.inject(1, null), eval("g.inject(1, null)"));
compare(g.inject(1), eval("g.inject(1)"));
compare(g.inject(1, 2, 3, 4), eval("g.inject(1,2,3,4)"));
compare(g.inject(1, 2, 3, new HashMap<>()), eval("g.inject(1,2,3,[:])"));
Expand Down

0 comments on commit c31430e

Please sign in to comment.