Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(687)

Unified Diff: runtime/observatory/tests/service/regexp_function_test.dart

Issue 2212643002: Removed warnings from test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Removed warnings from test Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/regexp_function_test.dart
diff --git a/runtime/observatory/tests/service/regexp_function_test.dart b/runtime/observatory/tests/service/regexp_function_test.dart
index ace1e585927b166aa002064ab75ca4ba423fade1..4736266fa3cb5321ae27cf68a86185ec6340b962 100644
--- a/runtime/observatory/tests/service/regexp_function_test.dart
+++ b/runtime/observatory/tests/service/regexp_function_test.dart
@@ -4,7 +4,6 @@
// VMOptions=
// VMOptions=--interpret_irregexp
-import "package:expect/expect.dart";
import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
import 'test_helper.dart';
@@ -18,7 +17,7 @@ void script() {
regex = new RegExp(r"(\w+)");
String str = "Parse my string";
Iterable<Match> matches = regex.allMatches(str); // Run to generate bytecode.
- Expect.equals(3, matches.length);
+ expect(matches.length, equals(3));
}
var tests = [
@@ -59,4 +58,3 @@ var tests = [
];
main(args) => runIsolateTests(args, tests, testeeBefore: script);
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698