Upgraded grade-versions plugin to 0.47.0
This commit is contained in:
parent
7f8d044d04
commit
4df6d3f599
3 changed files with 10 additions and 12 deletions
|
@ -42,23 +42,23 @@ class UrlEncoderTest {
|
|||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Encode no options`() {
|
||||
for (m in validMap) {
|
||||
assertEquals(m.second, UrlEncoder.encode(m.first), "encode(${m.first})")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Encode with SpaceToPlus`() {
|
||||
assertEquals("this+is+a+test", UrlEncoder.encode("this is a test", spaceToPlus = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Encode with allow`() {
|
||||
fun `Encode with Allow`() {
|
||||
assertEquals("this is a test", UrlEncoder.encode("this is a test", allow = " "))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Encode without Parameters`() {
|
||||
for (m in validMap) {
|
||||
assertEquals(m.second, UrlEncoder.encode(m.first), "encode(${m.first})")
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `Main Decode`() {
|
||||
for (m in validMap) {
|
||||
|
@ -96,7 +96,6 @@ class UrlEncoderTest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
fun `Main Usage with Empty Args`() {
|
||||
assertEquals(usage, processMain(arrayOf(" ", " ")).output, "processMain(' ', ' ')")
|
||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.ben-manes:gradle-versions-plugin:0.46.0")
|
||||
implementation("com.github.ben-manes:gradle-versions-plugin:0.47.0")
|
||||
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.0")
|
||||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.8.20")
|
||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21")
|
||||
|
|
|
@ -77,7 +77,6 @@ class UrlEncoderUtilTest {
|
|||
assertEquals("foo+bar", decode("foo%2Bbar", plusToSpace = true))
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
fun `Encode URL`() {
|
||||
for (m in validMap) {
|
||||
|
@ -99,7 +98,7 @@ class UrlEncoderUtilTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
fun `Encode with Allow Arg`() {
|
||||
fun `Encode with Allow`() {
|
||||
assertEquals("encode(x, =?)","?test=a%20test", encode("?test=a test", allow = "=?"))
|
||||
assertEquals("encode(aaa, a)", "aaa", encode("aaa", "a"))
|
||||
assertEquals("encode(' ')", " ", encode(" ", " ") )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue