| Index: test/codegen/corelib/reg_exp_has_match_test.dart
|
| diff --git a/test/codegen/language/allocate_test.dart b/test/codegen/corelib/reg_exp_has_match_test.dart
|
| similarity index 50%
|
| copy from test/codegen/language/allocate_test.dart
|
| copy to test/codegen/corelib/reg_exp_has_match_test.dart
|
| index 1f2fce2a6ba2ce5bbfa6b567ed681e4bf49455fa..6ff27443fa957e8601a58e85a7ff599c794531f1 100644
|
| --- a/test/codegen/language/allocate_test.dart
|
| +++ b/test/codegen/corelib/reg_exp_has_match_test.dart
|
| @@ -4,18 +4,16 @@
|
|
|
| import "package:expect/expect.dart";
|
|
|
| -class MyAllocate {
|
| - const MyAllocate([int value = 0]) : value_ = value;
|
| - int getValue() { return value_; }
|
| - final int value_;
|
| -}
|
| +// Dart test program for RegExp.hasMatch.
|
|
|
| -class AllocateTest {
|
| +class RegExpHasMatchTest {
|
| static testMain() {
|
| - Expect.equals(900, (new MyAllocate(900)).getValue());
|
| + Expect.equals(false, new RegExp("bar").hasMatch("foo"));
|
| + Expect.equals(true, new RegExp("bar|foo").hasMatch("foo"));
|
| + Expect.equals(true, new RegExp("o+").hasMatch("foo"));
|
| }
|
| }
|
|
|
| main() {
|
| - AllocateTest.testMain();
|
| + RegExpHasMatchTest.testMain();
|
| }
|
|
|