tests: replace usage of `is` with `is_same_instance`
[nit.git] / tests / error_expr_not_ok.nit
index 0f3063d..0b25f5c 100644 (file)
@@ -83,9 +83,9 @@ trash(fail == fail) # no rtype
 trash(fail != 1) # no rtype
 trash(1 != fail)
 trash(fail != fail) # no rtype
-trash(fail is 1)
-trash(1 is fail)
-trash(fail is fail)
+trash(fail.is_same_instance(1))
+trash(1.is_same_instance(fail))
+trash(fail.is_same_instance(fail))
 trash(fail < 1) # no rtype
 trash(1 < fail)
 trash(fail < fail) # no rtype