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
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'util.dart';
6 import 'package:expect/expect.dart';
7
8 void main() {
9 description(
10 'Test for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=
41458">Yarr Interpreter is crashing in some cases of look-ahead regex patterns</
a>'
11 );
12
13 shouldBe(firstMatch("ab", new RegExp(r"a(?=b|c)")), ["a"]);
14 shouldBe(firstMatch("abd", new RegExp(r"a(?=c|b)|d")), ["a"]);
Issue 667043003: Port regexp tests from V8 to Dart.
(Closed)
Created 6 years, 1 month ago by zerny-google
Modified 6 years, 1 month ago
Reviewers: Lasse Reichstein Nielsen, Ivan Posva
Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Comments: 14