Replaced sure() invocations with '!!' operator in codegen tests.

This commit is contained in:
Evgeny Gerashchenko
2012-09-14 17:18:58 +04:00
parent ffc4792071
commit 6e62212727
17 changed files with 26 additions and 26 deletions
@@ -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"));
}