tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/S15.10.2.7_A4_T21.js
raw| 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 production QuantifierPrefix :: * evaluates by returning the two |
| 7 | results 0 and \infty |
| 8 | es5id: 15.10.2.7_A4_T21 |
| 9 | description: Execute /[xyz]*1/.test('a0.b2.c3') and check results |
| 10 | ---*/ |
| 11 | |
| 12 | var __executed = /[xyz]*1/.test('a0.b2.c3'); |
| 13 | |
| 14 | //CHECK#1 |
| 15 | if (__executed) { |
| 16 | $ERROR('#1: /[xyz]*1/.test(\'a0.b2.c3\') === false'); |
| 17 | } |