| 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 |
The | regular expression operator separates two alternatives. |
| 7 |
The pattern first tries to match the left Alternative (followed by the sequel of the regular expression). |
| 8 |
If it fails, it tries to match the right Disjunction (followed by the sequel of the regular expression) |
| 9 |
es5id: 15.10.2.3_A1_T7 |
| 10 |
description: Execute /ab|cd|ef/.test("AEKFCD") and check results |
| 11 |
---*/ |
| 12 |
|
| 13 |
var __executed = /ab|cd|ef/.test("AEKFCD"); |
| 14 |
|
| 15 |
//CHECK#1 |
| 16 |
if (__executed) { |
| 17 |
$ERROR('#1: /ab|cd|ef/.test("AEKFCD") === false'); |
| 18 |
} |