This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import static org.assertj.core.api.Assertions.assertThat; | |
public class StringTest { | |
@Test | |
public void empty_regex_on_empty_char() { | |
assertThat("".split("")).isEqualTo(new String[]{""}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Java8MethodRef { | |
interface Equality1 { | |
boolean eq(Object a); | |
} | |
interface Equality2 { | |
boolean eq(Object a, Object b); | |
} |
NewerOlder