Index: tests/json/json_test.dart |
diff --git a/tests/json/json_test.dart b/tests/json/json_test.dart |
index 3f6235782711b43ded0b73427686ad59e7ddc109..1c7e4441248cb502e46b6587a0fcc634acc63565 100644 |
--- a/tests/json/json_test.dart |
+++ b/tests/json/json_test.dart |
@@ -139,8 +139,9 @@ main() { |
test('stringify custom converter', () { |
List l = [const C(0), const C(1)]; |
- expect(JSON.encode(l, (x) => "C(${x.id})"), equals("[C(0),C(1)]")); |
- expect(JSON.encode(l), equals("[C/0,C/1]")); |
+ expect(JSON.encode(l, toEncodable: (x) => "C(${x.id})"), |
+ equals('["C(0)","C(1)"]')); |
+ expect(JSON.encode(l), equals('["C/0","C/1"]')); |
}); |
} |