JPS: report about unsupported targets once
Report about unsupported targets once per target type, show presentable chunks list and don't show more then 5 chunks. Example: "Native is not yet supported in IDEA internal build system. Please use Gradle to build a, b, c, d, e and 10 other (enable 'Delegate IDE build/run actions to Gradle' in Settings)." #KT-26980 Fixed #KT-28316 Fixed
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.jps.build
|
||||
|
||||
import com.intellij.testFramework.UsefulTestCase
|
||||
|
||||
class JoinToReadableStringTest : UsefulTestCase() {
|
||||
fun test0() {
|
||||
assertEquals(
|
||||
"",
|
||||
listOf<String>().joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test1() {
|
||||
assertEquals(
|
||||
"a",
|
||||
listOf("a").joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
assertEquals(
|
||||
"a and b",
|
||||
listOf("a", "b").joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test3() {
|
||||
assertEquals(
|
||||
"a, b and c",
|
||||
listOf("a", "b", "c").joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test4() {
|
||||
assertEquals(
|
||||
"a, b, c and d",
|
||||
listOf("a", "b", "c", "d").joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test5() {
|
||||
assertEquals(
|
||||
"a, b, c, d and e",
|
||||
listOf("a", "b", "c", "d", "e").joinToReadableString()
|
||||
)
|
||||
}
|
||||
|
||||
fun test6() {
|
||||
assertEquals(
|
||||
"a, b, c, d, e and 1 more",
|
||||
listOf("a", "b", "c", "d", "e", "f").joinToReadableString()
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user