New J2K: Fix existing test data
This commit is contained in:
committed by
Ilya Kirillov
parent
9c71d5ca25
commit
ea2081c2f0
+23
@@ -0,0 +1,23 @@
|
||||
package com.voltvoodoo.saplo4j.model
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
class Language(protected var code: String?) : Serializable {
|
||||
override fun toString(): String {
|
||||
return code
|
||||
}
|
||||
}
|
||||
|
||||
internal open class Base {
|
||||
internal open fun test() {}
|
||||
override fun toString(): String {
|
||||
return "BASE"
|
||||
}
|
||||
}
|
||||
|
||||
internal class Child : Base() {
|
||||
override fun test() {}
|
||||
override fun toString(): String {
|
||||
return "Child"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
internal class Test {
|
||||
fun operationsWithChar() {
|
||||
val c = 1.toChar()
|
||||
val i = 1
|
||||
|
||||
b(i > c.toInt())
|
||||
b(i >= c.toInt())
|
||||
b(i < c.toInt())
|
||||
b(i <= c.toInt())
|
||||
|
||||
b(c.toInt() > i)
|
||||
b(c.toInt() >= i)
|
||||
b(c.toInt() < i)
|
||||
b(c.toInt() <= i)
|
||||
|
||||
b(c.toInt() == i)
|
||||
b(c.toInt() != i)
|
||||
b(i == c.toInt())
|
||||
b(i != c.toInt())
|
||||
|
||||
i(i + c.toInt())
|
||||
i(i - c.toInt())
|
||||
i(i / c.toInt())
|
||||
i(i * c.toInt())
|
||||
i(i % c.toInt())
|
||||
i(i or c.toInt())
|
||||
i(i and c.toInt())
|
||||
i(i shl c.toInt())
|
||||
i(i shr c.toInt())
|
||||
|
||||
i(c.toInt() + i)
|
||||
i(c.toInt() - i)
|
||||
i(c.toInt() / i)
|
||||
i(c.toInt() * i)
|
||||
i(c.toInt() % i)
|
||||
i(c.toInt() or i)
|
||||
i(c.toInt() and i)
|
||||
i(c.toInt() shl i)
|
||||
i(c.toInt() shr i)
|
||||
}
|
||||
|
||||
fun b(b: Boolean) {}
|
||||
fun i(i: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user