blob: 4acd4e7989c2f13ce8e67f9cd77a524c7a30ef9a [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart = 2.9
/// @assertion bool echoMode
/// Check if echo mode is enabled on [stdin].
/// @description Checks that [echoMode] is a valid [boolean] value and can be
/// read inside the dart process.
/// @author iarkh@unipro.ru
/// @Issue 31932
import "../../../Utils/expect.dart";
import "dart:io";
main(List<String> args) {
Expect.isTrue(stdin.echoMode || !stdin.echoMode);
}