tests: replace usage of `is` with `is_same_instance`
[nit.git] / tests / example_point.nit
index 39738d7..8a568f6 100644 (file)
@@ -53,7 +53,7 @@ private
 
        redef fun ==(p)
        do
-               return not p is null and p isa Point and _x == p.x and _y == p.y
+               return p isa Point and _x == p.x and _y == p.y
        end