2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: >
|
|
|
|
An escape sequence of the form \ followed by a nonzero decimal number n
|
|
|
|
matches the result of the nth set of capturing parentheses (see
|
|
|
|
15.10.2.11)
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.10.2.9_A1_T4
|
2015-09-07 18:56:02 +02:00
|
|
|
es6id: B.1.4
|
2014-07-22 01:09:02 +02:00
|
|
|
description: >
|
|
|
|
Execute /\b(\w+) \2\b/.test("do you listen the the band") and
|
|
|
|
check results
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2017-04-24 21:31:48 +02:00
|
|
|
var executed = /\b(\w+) \2\b/.test("do you listen the the band");
|
2011-09-07 08:35:18 +02:00
|
|
|
|
2017-04-24 21:31:48 +02:00
|
|
|
assert.sameValue(executed, false);
|