Index: tests/language/regex/norepeat_test.dart |
diff --git a/tests/language/issue20476_test.dart b/tests/language/regex/norepeat_test.dart |
similarity index 54% |
copy from tests/language/issue20476_test.dart |
copy to tests/language/regex/norepeat_test.dart |
index 35890a672dc6476dd2b20129c02a0d757dbfb945..311212e28d0183047ff7fd0db8fc4c3b0f9f875e 100644 |
--- a/tests/language/issue20476_test.dart |
+++ b/tests/language/regex/norepeat_test.dart |
@@ -2,23 +2,15 @@ |
// 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 'util.dart'; |
import 'package:expect/expect.dart'; |
-foo() { |
- try { |
- try { |
- return 1; |
- } catch (e1) { |
- } finally { |
- return 3; |
- } |
- } catch (e2) { |
- } finally { |
- return 5; |
- } |
-} |
- |
+void main() { |
+ description( |
+ 'Test for https:new RegExp(r"/bugs.webkit.org")show_bug.cgi?id=46077' |
+ ); |
-main() { |
- Expect.equals(5, foo()); |
+ var re = new RegExp(r"^b|^cd"); |
+ var str = "abcd"; |
+ shouldBeFalse(re.hasMatch(str)); |
} |