From cf6300441e9efe0bbf8afe06e35bd1ecb042e23f Mon Sep 17 00:00:00 2001 From: "lrn@google.com" Date: Fri, 11 Oct 2013 12:27:19 +0000 Subject: [PATCH] Update json/json_test to new parameter format. Review URL: https://codereview.chromium.org//26652003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28513 260f80e4-7a28-3924-810f-c04153c831b5 --- tests/json/json_test.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/json/json_test.dart b/tests/json/json_test.dart index 3f623578271..1c7e4441248 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"]')); }); }