[Test] Check that FIR tree does not contain stub types and type variable types after resolution

This commit is contained in:
Dmitriy Novozhilov
2022-10-11 13:34:48 +03:00
committed by Space Team
parent 20045ac0dc
commit 097a86deb5
12 changed files with 181 additions and 89 deletions
@@ -40,10 +40,14 @@ object JUnit4Assertions : Assertions() {
KtUsefulTestCase.assertSameElements(message?.invoke() ?: "", expected, actual)
}
override fun assertAll(exceptions: List<Throwable>) {
override fun failAll(exceptions: List<Throwable>) {
exceptions.forEach { throw it }
}
override fun assertAll(conditions: List<() -> Unit>) {
conditions.forEach { it.invoke() }
}
override fun fail(message: () -> String): Nothing {
throw AssertionError(message.invoke())
}