blob: 76555905c8ae589b1d4eadb10ddb76e40da4c1fa [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.
/// @assertion bool lineMode
/// Check if line mode is enabled on [stdin].
/// @description Checks that [lineMode] is a valid [boolean] value and can be
/// read inside the dart process.
/// @author
/// @Issue 31932
import "../../../Utils/expect.dart";
import "dart:io";
main(List<String> args) {
Expect.isTrue(stdin.lineMode || !stdin.lineMode);