1
1
Fork 0

Infrastructure: replaced 'untestable' with 'unimplemented test'

This commit is contained in:
Svetlana Isakova 2020-12-03 01:13:30 +01:00
parent 1ba140cfab
commit 9d79aacedd
5 changed files with 4 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import org.junit.Assert
import org.junit.Test
import util.TIMEOUT
import util.runAndGetSystemOutput
import util.untestable
class TestExceptionsExercise1 {
@Test(timeout = TIMEOUT)

View File

@ -4,7 +4,6 @@ import org.junit.Assert
import org.junit.Test
import util.TIMEOUT
import util.runAndGetSystemOutput
import util.untestable
import kotlin.math.E
import kotlin.math.PI

View File

@ -5,7 +5,6 @@ import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runners.MethodSorters
import util.TIMEOUT
import util.untestable
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
class TestDataTypesExercise3 {

View File

@ -1,8 +1,10 @@
package nullableTypesExercise2
import org.junit.Test
import util.untestable
import util.unimplementedTest
class TestNullableTypesExercise2 {
@Test fun testSolution() = untestable()
@Test fun testSolution() {
unimplementedTest()
}
}

View File

@ -533,10 +533,6 @@ private fun checkFunctionOrPropertyIsExtension(
expectedReceiver.java == functionOrGetter.parameters.single().type)
}
fun untestable() {
Assert.assertTrue("No tests: tests always pass", true)
}
inline fun checkMainIsImplemented(main: () -> Unit) {
try {
main()