commit
975adf7072
|
@ -25,8 +25,8 @@ public class RegexSelectorTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRegexWithZeroWidthAssertions() {
|
public void testRegexWithZeroWidthAssertions() {
|
||||||
String regex = "^.*(?=\\?)";
|
String regex = "^.*(?=\\?)(?!\\?yy)";
|
||||||
String source = "hello world?xxxx";
|
String source = "hello world?xx?yy";
|
||||||
RegexSelector regexSelector = new RegexSelector(regex);
|
RegexSelector regexSelector = new RegexSelector(regex);
|
||||||
String select = regexSelector.select(source);
|
String select = regexSelector.select(source);
|
||||||
Assertions.assertThat(select).isEqualTo("hello world");
|
Assertions.assertThat(select).isEqualTo("hello world");
|
||||||
|
|
Loading…
Reference in New Issue