a279ee1e65
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>
14 lines
486 B
Dart
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".',
|
|
);
|
|
}
|