blob: 3178ae84bd81f457a4ff145e576965baa2a3ce55 [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 JsonDecoder decoder
* @description Checks that this property returns JsonDecoder which 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) {
var codec = new JsonCodec() as JsonCodec?;
Object? res = codec?.decoder.convert(pair[1] as String);
Expect.deepEquals(pair[0], res);