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 Atom :: . evaluates as follows:
7 i) Let A be the set of all characters except the four line terminator characters <LF>, <CR>, <LS>, or <PS>
8 ii) Call CharacterSetMatcher(A, false) and return its Matcher result
10 description: Execute /.*a.* /.exec("this is a test") and check results
13 var __string = "this is a test";
14 var __executed = /.*a.*/.exec(__string);
16 var __expected = ["this is a test"];
18 __expected.input = __string;
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]'