blob: b7eb5b388b7fb2b20ffe3689c6d71e855b865525 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:expect/variations.dart' as v;
import 'src/test_suite.dart';
export 'package:expect/expect.dart';
export 'src/async_minitest.dart' hide test;
export 'src/matchers.dart';
final TestSuite _testSuite = TestSuite();
/// Describes the test named [name] given by the function [body].
///
/// After all tests are described, they will be run. All calls to [test] must be
/// made in the same event as the program's `main()` function.
void test(
String name,
dynamic Function() body, {
bool skip = false,
}) {
_testSuite.test(name, body, skip: skip);
}
/// Whether asserts are enabled.
final bool assertStatementsEnabled = v.enabledAsserts;