Files
sdk/tests/dartdevc/utils.dart
Robert Nystrom a279ee1e65 Reformat tests/dartdevc.
Change-Id: I043b7df217e5a479fa15375458bc643e2b38f3d0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399629
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2024-12-10 04:29:10 +00:00

14 lines
486 B
Dart

// Copyright (c) 2019, 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 "package:expect/expect.dart";
/// Expects that [expected] appears as a substring in [actual].
expectStringContains(String expected, String actual) {
Expect.isTrue(
actual.contains(expected),
'Failure: "$expected" should appear in: "$actual".',
);
}