blob: 88869a1f7ef022069c909b7aaebb61e1c1eb2442 [file] [log] [blame]
// Copyright (c) 2011, 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 static void isTrue(var actual, [String reason = null])
/// Checks whether the actual value is a bool and its value is true.
/// @description Checks that no exception is thrown when the argument is a bool and its value is true,
/// regardless of reason (the last argument).
/// @author rodionov
/// @reviewer varlax
import "../../../Utils/expect.dart";
main() {
Expect.isTrue(true);
Expect.isTrue(true, "");
Expect.isTrue(true, "not empty");
}