Update RegexSelectorTest.java

简单的增加了一点测试
master
zhuyue 2017-05-03 18:33:23 +08:00 committed by GitHub
parent 39c3c2f904
commit c80f25edbd
1 changed files with 2 additions and 2 deletions

View File

@ -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");