| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Utility functions to easily port V8 tests. | 5 // Utility functions to easily port V8 tests. |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
| 8 | 8 |
| 9 void assertEquals(actual, expected, [String message = null]) { | 9 void assertEquals(actual, expected, [String message = null]) { |
| 10 Expect.equals(actual, expected, message); | 10 Expect.equals(actual, expected, message); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 Expect.equals(expected[i], actual.group(i), message); | 56 Expect.equals(expected[i], actual.group(i), message); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 Match firstMatch(String str, RegExp pattern) => pattern.firstMatch(str); | 61 Match firstMatch(String str, RegExp pattern) => pattern.firstMatch(str); |
| 62 List<String> allStringMatches(String str, RegExp pattern) => | 62 List<String> allStringMatches(String str, RegExp pattern) => |
| 63 pattern.allMatches(str).map((Match m) => m.group(0)).toList(); | 63 pattern.allMatches(str).map((Match m) => m.group(0)).toList(); |
| 64 | 64 |
| 65 void description(str) {} | 65 void description(str) {} |
| OLD | NEW |