blob: 19d6700fb13fbfa0b2b9dc6a3dd2164d936d72e5 [file] [log] [blame]
* Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
* @assertion JsonEncoder encoder
* @description Checks that this property returns JsonEncoder witch works as
* expected
* @author
import "dart:convert";
import "../../../Utils/expect.dart";
import "../JsonDecoder/table1.lib.dart" show table;
main() {
for (List<Object?> pair in table) {
JsonCodec codec = new JsonCodec();
String res = codec.encoder.convert(pair[0]);
Expect.equals(pair[1], res);