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 Assertion :: ^ evaluates by returning an internal
7 AssertionTester closure that takes a State argument x and performs the ...
10 Execute /^p[a-z]/.exec("pairs\nmakes\tdouble\npesos") and check
14 var __executed = /^p[a-z]/.exec("pairs\nmakes\tdouble\npesos");
16 var __expected = ["pa"];
18 __expected.input = "pairs\nmakes\tdouble\npesos";
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]'