Index: tests/corelib/regexp/captures_test.dart |
diff --git a/runtime/third_party/double-conversion/src/strtod.h b/tests/corelib/regexp/captures_test.dart |
similarity index 69% |
copy from runtime/third_party/double-conversion/src/strtod.h |
copy to tests/corelib/regexp/captures_test.dart |
index ed0293b8f54a373762f17fe4dd70f2896eb1d193..be91e2bc6456cd2a378d9f74e2cad48896c3c587 100644 |
--- a/runtime/third_party/double-conversion/src/strtod.h |
+++ b/tests/corelib/regexp/captures_test.dart |
@@ -1,4 +1,5 @@ |
-// Copyright 2010 the V8 project authors. All rights reserved. |
+// Copyright (c) 2014, the Dart project authors. All rights reserved. |
+// Copyright 2009 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -25,21 +26,11 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-#ifndef DOUBLE_CONVERSION_STRTOD_H_ |
-#define DOUBLE_CONVERSION_STRTOD_H_ |
+import 'v8_regexp_utils.dart'; |
+import 'package:expect/expect.dart'; |
-#include "utils.h" |
- |
-namespace double_conversion { |
- |
-// The buffer must only contain digits in the range [0-9]. It must not |
-// contain a dot or a sign. It must not start with '0', and must not be empty. |
-double Strtod(Vector<const char> buffer, int exponent); |
- |
-// The buffer must only contain digits in the range [0-9]. It must not |
-// contain a dot or a sign. It must not start with '0', and must not be empty. |
-float Strtof(Vector<const char> buffer, int exponent); |
- |
-} // namespace double_conversion |
- |
-#endif // DOUBLE_CONVERSION_STRTOD_H_ |
+void main() { |
+ var re = new RegExp(r"^(((N({)?)|(R)|(U)|(V)|(B)|(H)|(n((n)|(r)|(v)|(h))?)|(r(r)?)|(v)|(b((n)|(b))?)|(h))|((Y)|(A)|(E)|(o(u)?)|(p(u)?)|(q(u)?)|(s)|(t)|(u)|(w)|(x(u)?)|(y)|(z)|(a((T)|(A)|(L))?)|(c)|(e)|(f(u)?)|(g(u)?)|(i)|(j)|(l)|(m(u)?)))+"); |
+ var str = "Avtnennan gunzvmu pubExnY nEvln vaTxh rmuhguhaTxnY"; |
+ assertTrue(re.hasMatch(str)); |
+} |