[Test] Fix various tests according to switching to kotlin 1.5
This commit is contained in:
+2
-2
@@ -6,14 +6,14 @@ interface KotlinCommonOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonToo
|
||||
|
||||
/**
|
||||
* Allow using declarations only from the specified version of bundled libraries
|
||||
* Possible values: "1.2 (DEPRECATED)", "1.3", "1.4", "1.5 (EXPERIMENTAL)", "1.6 (EXPERIMENTAL)"
|
||||
* Possible values: "1.3 (DEPRECATED)", "1.4", "1.5", "1.6 (EXPERIMENTAL)"
|
||||
* Default value: null
|
||||
*/
|
||||
var apiVersion: kotlin.String?
|
||||
|
||||
/**
|
||||
* Provide source compatibility with the specified version of Kotlin
|
||||
* Possible values: "1.2 (DEPRECATED)", "1.3", "1.4", "1.5 (EXPERIMENTAL)", "1.6 (EXPERIMENTAL)"
|
||||
* Possible values: "1.3 (DEPRECATED)", "1.4", "1.5", "1.6 (EXPERIMENTAL)"
|
||||
* Default value: null
|
||||
*/
|
||||
var languageVersion: kotlin.String?
|
||||
|
||||
+6
-6
@@ -467,18 +467,18 @@ class KotlinGradleIT : BaseGradleIT() {
|
||||
}
|
||||
|
||||
// check the arguments are always passed if specified explicitly
|
||||
updateBuildGradle("1.2", "1.2")
|
||||
updateBuildGradle("1.4", "1.4")
|
||||
project.build("clean", "compileKotlin") {
|
||||
assertSuccessful()
|
||||
assertContains("-language-version 1.2")
|
||||
assertContains("-api-version 1.2")
|
||||
assertContains("-language-version 1.4")
|
||||
assertContains("-api-version 1.4")
|
||||
}
|
||||
|
||||
updateBuildGradle("1.3", "1.3")
|
||||
updateBuildGradle("1.5", "1.5")
|
||||
project.build("clean", "compileKotlin") {
|
||||
assertSuccessful()
|
||||
assertContains("-language-version 1.3")
|
||||
assertContains("-api-version 1.3")
|
||||
assertContains("-language-version 1.5")
|
||||
assertContains("-api-version 1.5")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -12,7 +12,7 @@ class UpToDateIT : BaseGradleIT() {
|
||||
testMutations(
|
||||
*propertyMutationChain(
|
||||
"compileKotlin.kotlinOptions.languageVersion",
|
||||
"null", "'1.3'", "'1.2'", "null"
|
||||
"null", "'1.5'", "'1.4'", "null"
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class UpToDateIT : BaseGradleIT() {
|
||||
testMutations(
|
||||
*propertyMutationChain(
|
||||
"compileKotlin.kotlinOptions.apiVersion",
|
||||
"null", "'1.3'", "'1.2'", "null"
|
||||
"null", "'1.5'", "'1.4'", "null"
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user