Fix KotlinVersionsTest.testVersionsAreConsistent after TC version increase
Related to KT-59171, KT-61951
This commit is contained in:
committed by
Space Team
parent
326d68c1f4
commit
37ef18548e
@@ -74,8 +74,8 @@ class KotlinVersionsTest : KtUsefulTestCase() {
|
||||
)
|
||||
|
||||
val latestStableVersion = LanguageVersion.LATEST_STABLE.versionString.toVersion("LanguageVersion.LATEST_STABLE")
|
||||
// TODO: uncomment this addition after bootstrapping in KT-61951
|
||||
//versions.add(latestStableVersion)
|
||||
// Note: comment the next line before a language version update
|
||||
versions.add(latestStableVersion)
|
||||
|
||||
if (versions.any { v1 -> versions.any { v2 -> !v1.isConsistentWith(v2) } }) {
|
||||
Assert.fail(
|
||||
@@ -84,13 +84,13 @@ class KotlinVersionsTest : KtUsefulTestCase() {
|
||||
)
|
||||
}
|
||||
|
||||
// TODO: remove/comment this check after bootstrapping in KT-61951
|
||||
if (versions.any { it.isConsistentWith(latestStableVersion) }) {
|
||||
Assert.fail(
|
||||
"Some versions are consistent with LATEST_STABLE ${latestStableVersion.versionString}. Please edit KotlinVersionsTest accordingly:\n\n" +
|
||||
versions.joinToString(separator = "\n") { with(it) { "$versionString ($source)" } }
|
||||
)
|
||||
}
|
||||
// Note: uncomment this fragment before a language version update
|
||||
// if (versions.any { it.isConsistentWith(latestStableVersion) }) {
|
||||
// Assert.fail(
|
||||
// "Some versions are consistent with LATEST_STABLE ${latestStableVersion.versionString}. Please edit KotlinVersionsTest accordingly:\n\n" +
|
||||
// versions.joinToString(separator = "\n") { with(it) { "$versionString ($source)" } }
|
||||
// )
|
||||
// }
|
||||
}
|
||||
|
||||
fun testMavenProjectVersionsAreEqual() {
|
||||
|
||||
Reference in New Issue
Block a user