JS backend: _commonFiles/ for common kotlin files in testData/ and every test dir
This commit is contained in:
committed by
Zalim Bashorov
parent
9b433e31a2
commit
dd3dbe5b10
@@ -6,10 +6,6 @@
|
||||
|
||||
package foo
|
||||
|
||||
fun assertEquals<T>(expected: T, actual: T) {
|
||||
if (expected != actual) throw Exception("expected: $expected, actual: $actual")
|
||||
}
|
||||
|
||||
fun firstNotNullLen(s1 : String?, s2 : String?, s3 : String?) : Int {
|
||||
val len = (s1?.length() ?: s2?.length()) ?:
|
||||
(s2?.length() ?: s3?.length()) ?:
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
|
||||
package foo
|
||||
|
||||
fun assertEquals<T>(expected: T, actual: T) {
|
||||
if (expected != actual) throw Exception("expected: $expected, actual: $actual")
|
||||
}
|
||||
|
||||
fun stringLen(s : String?) : Int {
|
||||
val s1 : String = s ?: return 0
|
||||
return s1.length
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
package foo
|
||||
|
||||
fun assertEquals<T>(expected: T, actual: T) {
|
||||
if (expected != actual) throw Exception("expected: $expected, actual: $actual")
|
||||
}
|
||||
|
||||
var i = 0
|
||||
fun bar(): Any? {
|
||||
i++
|
||||
|
||||
Reference in New Issue
Block a user