Replaced sure() invocations with '!!' operator in codegen tests.
This commit is contained in:
@@ -320,12 +320,12 @@ public class PrimitiveTypesTest extends CodegenTestCase {
|
||||
}
|
||||
|
||||
public void testSureNonnull () throws Exception {
|
||||
loadText("fun box() = 10.sure().toString()");
|
||||
loadText("fun box() = 10!!.toString()");
|
||||
assertFalse(generateToText().contains("IFNONNULL"));
|
||||
}
|
||||
|
||||
public void testSureNullable () throws Exception {
|
||||
loadText("val a : Int? = 10; fun box() = a.sure().toString()");
|
||||
loadText("val a : Int? = 10; fun box() = a!!.toString()");
|
||||
assertTrue(generateToText().contains("IFNONNULL"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user