blob: c29de2f7ae68294c0f1c014fa35b1a48d577b36f [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.
import "dart:convert";
import "dart:io";
void main(List<String> arguments) {
int i = 0;
String line;
while ((line = stdin.readLineSync(encoding: UTF8)) != null) {
if (JSON.decode(arguments[i]) != line) {
throw "bad line at $i: ${line.codeUnits}";
if (i != arguments.length) throw "expect ${arguments.length} lines";