1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 The production QuantifierPrefix :: ? evaluates by returning the two
10 Execute /java(script)?/.exec("state: java and javascript are
11 vastly different") and check results
14 var __executed = /java(script)?/.exec("state: java and javascript are vastly different");
16 var __expected = ["java", undefined];
18 __expected.input = "state: java and javascript are vastly different";
23 'The value of __executed.length is expected to equal the value of __expected.length'
29 'The value of __executed.index is expected to equal the value of __expected.index'
35 'The value of __executed.input is expected to equal the value of __expected.input'
38 for(var index=0; index<__expected.length; index++) {
42 'The value of __executed[index] is expected to equal the value of __expected[index]'