blob: dc7e62b0272ebb779e90442f2b402732b71aa9e7 [file] [log] [blame]
/*
* Copyright (c) 2013, 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 Converter<S, dynamic> fuse(Converter<T, dynamic> other)
* Fuses this with other.
* Encoding with the resulting converter is equivalent to converting with this
* before converting with other.
* @description Checks that encoding with the resulting converter is equivalent
* to converting with this before converting with other.
* are parsed correctly.
* @author kaigorodov
*/
import "dart:convert";
import "../../../Utils/expect.dart";
import "../JsonDecoder/table1.lib.dart" show table;
main() {
for (List<Object> pair in table) {
JsonEncoder jenc=new JsonEncoder();
Converter conv=jenc.fuse(new JsonDecoder(null));
Object res = conv.convert(pair[0]);
Expect.deepEquals(pair[0], res);
}
}