[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
+3 -3
View File
@@ -3,8 +3,6 @@
* that can be found in the LICENSE file.
*/
package codegen.function.sum
import kotlin.test.*
fun sumIB(a:Int, b:Byte ) = a + b
@@ -16,7 +14,7 @@ fun sumID(a:Int, b:Double) = a + b
fun modID(a:Int, b:Double) = a % b
@Test fun runTest() {
fun box(): String {
if (sumIB(2, 3) != 5) throw Error()
if (sumIS(2, 3) != 5) throw Error()
if (sumII(2, 3) != 5) throw Error()
@@ -24,4 +22,6 @@ fun modID(a:Int, b:Double) = a % b
if (sumIF(2, 3.0f) != 5.0f) throw Error()
if (sumID(2, 3.0) != 5.0) throw Error()
if (modID(5, 3.0) != 2.0) throw Error()
return "OK"
}