From ae264967309e56773f1c5dc391d8894c26c59057 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 21 Oct 2018 11:07:46 +0200 Subject: [PATCH] Fix grid resize test to check for object identity --- test/simulation_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/simulation_test.dart b/test/simulation_test.dart index 7b8bf82..1f99ed1 100644 --- a/test/simulation_test.dart +++ b/test/simulation_test.dart @@ -24,7 +24,7 @@ void main() { test("creates a new underlying grid on resizing", () { var oldMap = sut.map; sut.gridSize = Point(10, 10); - expect(sut.map, isNot(oldMap)); + expect(sut.map, isNot(same(oldMap))); }); }); group("reset", () {