Converter tests:
Use generated tests approach in converter tests Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt" Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly Add abstract base classes for generated tests Rename test folder "file" to "misc" (for the lack of imagination)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package test
|
||||
open class Test() : Base() {
|
||||
public override fun hashCode() : Int {
|
||||
return super.hashCode()
|
||||
}
|
||||
public override fun equals(o : Any?) : Boolean {
|
||||
return super.equals(o)
|
||||
}
|
||||
protected override fun clone() : Any? {
|
||||
return super.clone()
|
||||
}
|
||||
public override fun toString() : String? {
|
||||
return super.toString()
|
||||
}
|
||||
protected override fun finalize() : Unit {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
open class Base() {
|
||||
public open fun hashCode() : Int {
|
||||
return System.identityHashCode(this)
|
||||
}
|
||||
public open fun equals(o : Any?) : Boolean {
|
||||
return this.identityEquals(o)
|
||||
}
|
||||
protected open fun clone() : Any? {
|
||||
return super.clone()
|
||||
}
|
||||
public open fun toString() : String? {
|
||||
return getJavaClass<Base>.getName() + '@' + Integer.toHexString(hashCode())
|
||||
}
|
||||
protected open fun finalize() : Unit {
|
||||
super.finalize()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user