to compileable state
This commit is contained in:
committed by
Pavel V. Talanov
parent
34da39c55b
commit
80e678e2ec
@@ -24,6 +24,7 @@ import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
import junit.framework.TestSuite;
|
||||
import kotlinc.internal.com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -86,7 +87,7 @@ public class StandaloneJavaToKotlinConverterTest extends TestCase {
|
||||
tmp.delete();
|
||||
}
|
||||
|
||||
Assert.assertEquals(expected, actual);
|
||||
Assert.assertEquals(StringUtil.convertLineSeparators(expected), StringUtil.convertLineSeparators(actual));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package test
|
||||
public open class Test(str : String?) {
|
||||
var myStr : String? = "String2"
|
||||
public open fun sout(str : String?) : Unit {
|
||||
System.out?.println(str)
|
||||
}
|
||||
public open fun dummy(str : String?) : String? {
|
||||
return str
|
||||
}
|
||||
public open fun test() : Unit {
|
||||
sout("String")
|
||||
var test : String? = "String2"
|
||||
sout(test)
|
||||
sout(dummy(test))
|
||||
Test(test)
|
||||
}
|
||||
{
|
||||
myStr = str
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user