| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
An escape sequence of the form \ followed by a nonzero decimal number n |
| 7 |
matches the result of the nth set of capturing parentheses (see |
| 8 |
15.10.2.11) |
| 9 |
es5id: 15.10.2.9_A1_T4 |
| 10 |
es6id: B.1.4 |
| 11 |
description: > |
| 12 |
Execute /\b(\w+) \2\b/.test("do you listen the the band") and |
| 13 |
check results |
| 14 |
---*/ |
| 15 |
|
| 16 |
var executed = /\b(\w+) \2\b/.test("do you listen the the band"); |
| 17 |
|
| 18 |
assert.sameValue(executed, false); |