Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
|
||
public class FilterCompilerTest { | ||
|
||
|
||
@Test | ||
public void valid_filters_compile() { | ||
assertThat(compile("[?(@)]").toString()).isEqualTo("[?(@)]"); | ||
|
@@ -60,6 +59,10 @@ public void string_can_contain_path_chars() { | |
assertThat(compile("[?(@[\")]@$)]\"] == \")]@$)]\")]").toString()).isEqualTo("[?(@[\")]@$)]\"] == \")]@$)]\")]"); | ||
} | ||
|
||
@Test(expected = InvalidPathException.class) | ||
public void invalid_path_when_string_literal_is_unquoted() { | ||
compile("[?(@.foo == x)]"); | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kallestenflo
Author
Contributor
|
||
|
||
@Test | ||
public void invalid_filters_does_not_compile() { | ||
|
I should note that this change (first introduced in 1a72fc0 I think) breaks backward compatibility. Would not it be more user-friendly to accept simple [a-z][a-z0-9_]* strings as string literals?