Fix parsing of external property values containing = (#631)
This commit is contained in:
1 parent
e5b7e046d9
commit
a8f24c9f13
2 files changed
+6
-5
No files matched your search
@@ -44,11 +44,12 @@ class BaseCommandTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `external properties without value default to 'true'`() {
|
||||
cmd.parse(arrayOf("-p", "flag1", "-p", "flag2=", "-p", "FOO=bar"))
|
||||
fun `difficult cases for external properties`() {
|
||||
cmd.parse(arrayOf("-p", "flag1", "-p", "flag2=", "-p", "FOO=bar", "-p", "baz=qux=quux"))
|
||||
val props = cmd.baseOptions.baseOptions(emptyList()).externalProperties
|
||||
|
||||
assertThat(props).isEqualTo(mapOf("flag1" to "true", "flag2" to "", "FOO" to "bar"))
|
||||
assertThat(props)
|
||||
.isEqualTo(mapOf("flag1" to "true", "flag2" to "", "FOO" to "bar", "baz" to "qux=quux"))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user