1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 An Atom followed by a Quantifier is repeated the number of times
7 specified by the Quantifier
9 description: Execute /(z)((a+)?(b+)?(c))* /.exec("zaacbbbcac") and check results
12 var __executed = /(z)((a+)?(b+)?(c))*/.exec("zaacbbbcac");
14 var __expected = ["zaacbbbcac", "z", "ac", "a", undefined, "c"];
16 __expected.input = "zaacbbbcac";
21 'The value of __executed.length is expected to equal the value of __expected.length'
27 'The value of __executed.index is expected to equal the value of __expected.index'
33 'The value of __executed.input is expected to equal the value of __expected.input'
36 for(var index=0; index<__expected.length; index++) {
40 'The value of __executed[index] is expected to equal the value of __expected[index]'