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
/ * - - -
2018-01-05 18:26:51 +01:00
info : |
2014-07-22 01:09:02 +02:00
The production CharacterClass : : [ ^ ClassRanges ] evaluates by
evaluating ClassRanges to obtain a CharSet and returning that CharSet
and the boolean true
2014-07-25 00:41:42 +02:00
es5id : 15.10 . 2.13 _A2 _T3
2014-07-22 01:09:02 +02:00
description : Execute / a [ ^ b - z ] \ s + / . e x e c ( " a b a n a z a Y n " ) a n d c h e c k r e s u l t s
-- - * /
2011-09-07 08:35:18 +02:00
2015-04-29 17:42:48 +02:00
var _ _executed = /a[^b-z]\s+/ . exec ( "ab an az aY n" ) ;
2011-09-07 08:35:18 +02:00
2015-04-29 17:42:48 +02:00
var _ _expected = [ "aY " ] ;
2011-09-07 08:35:18 +02:00
_ _expected . index = 9 ;
_ _expected . input = "ab an az aY n" ;
//CHECK#1
if ( _ _executed . length !== _ _expected . length ) {
2021-07-28 22:49:34 +02:00
throw new Test262Error ( '#1: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.length === ' + _ _expected . length + '. Actual: ' + _ _executed . length ) ;
2011-09-07 08:35:18 +02:00
}
//CHECK#2
if ( _ _executed . index !== _ _expected . index ) {
2021-07-28 22:49:34 +02:00
throw new Test262Error ( '#2: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.index === ' + _ _expected . index + '. Actual: ' + _ _executed . index ) ;
2011-09-07 08:35:18 +02:00
}
//CHECK#3
if ( _ _executed . input !== _ _expected . input ) {
2021-07-28 22:49:34 +02:00
throw new Test262Error ( '#3: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed.input === ' + _ _expected . input + '. Actual: ' + _ _executed . input ) ;
2011-09-07 08:35:18 +02:00
}
//CHECK#4
2018-02-09 18:09:47 +01:00
for ( var index = 0 ; index < _ _expected . length ; index ++ ) {
if ( _ _executed [ index ] !== _ _expected [ index ] ) {
2021-07-28 22:49:34 +02:00
throw new Test262Error ( '#4: __executed = /a[^b-z]\\s+/.exec("ab an az aY n"); __executed[' + index + '] === ' + _ _expected [ index ] + '. Actual: ' + _ _executed [ index ] ) ;
2018-02-09 18:09:47 +01:00
}
2011-09-07 08:35:18 +02:00
}