Commit c80f25ed authored by zhuyue's avatar zhuyue Committed by GitHub

Update RegexSelectorTest.java

简单的增加了一点测试
parent 39c3c2f9
...@@ -25,8 +25,8 @@ public class RegexSelectorTest { ...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment