blob: dfb474acc093384d7dd36424318285e1715ebb78 [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 sgrekhov@unipro.ru
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();
Expect.isNotNull(codec.decoder);
String res = codec.encoder.convert(pair[0]);
Expect.equals(pair[1], res);
}
}