Skip to content

Commit 807b771

Browse files
committed
simplify test case
1 parent 78d2409 commit 807b771

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/test/java/com/dashjoin/jsonata/StringTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ public void evalTest() {
130130

131131
@Test
132132
public void regexTest() {
133-
Assertions.assertEquals(Map.of("foo", 1), jsonata(
134-
"($matcher := $eval('/^' & 'foo' & '/i'); $.$spread()[$.$keys() ~> $matcher])")
135-
.evaluate(Map.of("foo", 1, "bar", 2)));
133+
// check for IndexOutOfBoundsException
134+
jsonata("/endsWithSlash-i/i");
136135
}
137136

138137
@Disabled

0 commit comments

Comments
 (0)