Fix JDK7 failing tests
This commit is contained in:
committed by
Space
parent
81eae94821
commit
33fb49f20d
@@ -460,13 +460,7 @@ class RegexTest {
|
||||
}
|
||||
|
||||
@Test fun replaceWithNamedGroups() {
|
||||
if (!supportsNamedCapturingGroup) {
|
||||
assertFails {
|
||||
val pattern = Regex("(?<first>\\d+)-(?<second>\\d+)")
|
||||
pattern.replace("123-456", "\${first}+\${second}")
|
||||
}
|
||||
return
|
||||
}
|
||||
if (!supportsNamedCapturingGroup) return
|
||||
|
||||
val pattern = Regex("(?<first>\\d+)-(?<second>\\d+)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user