minigrace
Version:
A compiler for the Grace programming language
315 lines (314 loc) • 28.1 kB
JavaScript
let gracecode_nospec_sourceFile = "/Users/black/Development/mg/gracelang/minigrace/modules/nospec.grace";
let gracecode_nospec_sha256 = "5b8d45766928017f018c1e74fe6ca9134ad8f785fe276d0d39f7b982d307e239";
let gracecode_nospec_minigraceRevision = "b57591d29fc5ee5270d114920bf671367b8c3ecb";
let gracecode_nospec_minigraceGeneration = "5171";
if (typeof gctCache !== "undefined")
gctCache["nospec"] = "dialect:\nfreshScopes:\n $102 trait\n $103\n $104\n $105 trait\n $106 trait\n $107 trait\n $108 trait\n $109\n $110 trait\n $111 trait\n $112\n $114 trait\n $115 trait\nmethodTypes:$101:\n expect(a:Unknown)toBe(b:Unknown)orSay(str:String) \u2192 Unknown\n expect(b:Procedure0)notToRaise(undesired:Unknown) \u2192 Unknown\n expect(b:Procedure0)toRaise(desired:Unknown) \u2192 Unknown\n expect(bb:Boolean)orSay(str:String) \u2192 Unknown\n expect(n1:Number)toBe(n2:Number)within(epsilon:Unknown) \u2192 Unknown\n expect(s:Unknown)notToHaveType(undesired:Type) \u2192 Unknown\n expect(s:Unknown)toHaveType(desired:Type) \u2192 Unknown\n specify(name:String)by(block:Unknown) \u2192 Unknown\nmodules:\n standardBundle\npath:\n /Users/black/Development/mg/gracelang/minigrace/modules/nospec.grace\nscope:$101:\n AndPattern(2) Unknown (mth) $102\n AndType(2) Unknown (mth) $103\n BarType(2) Unknown (mth) $104\n BasePattern Unknown (mth) $105\n BaseType Unknown (mth) $106\n Binding type\n Boolean type\n BoundsError Unknown (mth) $scope_done\n Collection type\n CollectionFactory type\n ConcurrentModification Unknown (mth) $scope_done\n DialectError Unknown (mth) $scope_done\n Dictionary type\n Done type\n Enumerable type\n EnvironmentException Unknown (mth) $scope_done\n EqualityObject type\n Exception Unknown (mth) $scope_done\n ExceptionKind type\n ExceptionPacket type\n Function0 type\n Function1 type\n Function2 type\n Function3 type\n Interface type\n Iterator type\n IteratorExhausted Unknown (mth) $scope_done\n List type\n NoSuchMethod Unknown (mth) $scope_done\n NoSuchObject Unknown (mth) $scope_done\n None type\n NotPattern(1) Unknown (mth) $107\n Number type\n Object type\n OrPattern(2) Unknown (mth) $108\n Pattern type\n Point type\n Predicate0 type\n Predicate1 type\n Predicate2 type\n Predicate3 type\n Procedure0 type\n Procedure1 type\n Procedure2 type\n Procedure3 type\n ProgrammingError Unknown (mth) $scope_done\n RequestError Unknown (mth) $scope_done\n ResourceException Unknown (mth) $scope_done\n RuntimeError Unknown (mth) $scope_done\n SelfType type\n Sequence type\n Sequenceable type\n Set type\n Signature type\n Sink type\n String type\n SubobjectResponsibility Unknown (mth) $scope_done\n Type type\n TypeError Unknown (mth) $scope_done\n TypeExclusion(2) Unknown (mth) $109\n TypeIntersection(2) Unknown (mth) $scope_done\n TypeVariant(2) Unknown (mth) $scope_done\n UnimplementedMethod Unknown (mth) $scope_done\n UninitializedVariable Unknown (mth) $scope_done\n abstract Unknown (mth) $scope_done\n annotation Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n binding Unknown (mth) $scope_done\n collection Unknown (mth) $scope_done\n confidential Unknown (mth) $scope_done\n describe(1)with(1) Unknown (mth) $scope_done\n dictionary Unknown (mth) $scope_done\n dictionary(1) Unknown (mth) $scope_done\n do(1)while(1) Unknown (mth) $scope_done\n done Unknown (mth) $scope_done\n enumerable Unknown (mth) $scope_done\n equality Unknown (mth) $110\n expect(1)notToBe(1) Unknown (mth) $scope_done\n expect(1)notToHaveType(1) Unknown (mth) $scope_done\n expect(1)notToRaise(1) Unknown (mth) $scope_done\n expect(1)orSay(1) Unknown (mth) $scope_done\n expect(1)toBe(1) Unknown (mth) $scope_done\n expect(1)toBe(1)orSay(1) Unknown (mth) $scope_done\n expect(1)toBe(1)within(1) Unknown (mth) $scope_done\n expect(1)toHaveType(1) Unknown (mth) $scope_done\n expect(1)toRaise(1) Unknown (mth) $scope_done\n for(1)and(1)do(1) Unknown (mth) $scope_done\n for(1)do(1) Unknown (mth) $scope_done\n hashCombine(2) Unknown (mth) $scope_done\n identityEquality Unknown (mth) $111\n indexable Unknown (mth) $scope_done\n infinity Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n list Unknown (mth) $scope_done\n list(1) Unknown (mth) $scope_done\n max(2) Unknown (mth) $scope_done\n min(2) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n numberOfErrorsToRerun:=(1) Unknown (mth) $scope_done\n override Unknown (mth) $scope_done\n pi Unknown (mth) $scope_done\n point2Dx(1)y(1) Unknown (mth) $112\n primitiveArray Unknown (mth) $113\n public Unknown (mth) $scope_done\n range Unknown (mth) $scope_done\n readable Unknown (mth) $scope_done\n repeat(1)times(1) Unknown (mth) $scope_done\n required Unknown (mth) $scope_done\n sequence Unknown (mth) $scope_done\n sequence(1) Unknown (mth) $scope_done\n set Unknown (mth) $scope_done\n set(1) Unknown (mth) $scope_done\n singleton Unknown (mth) $114\n singleton(1) Unknown (mth) $115\n specify(1)by(1) Unknown (mth) $scope_done\n valueOf(1) Unknown (mth) $scope_done\n while(1)do(1) Unknown (mth) $scope_done\n writable Unknown (mth) $scope_done\n \u03c0 Unknown (mth) $scope_done\nscope:$102:\n &(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix\u00ac Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\nscope:$103:\n &(1) Unknown (mth) $scope_done\n -(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString Unknown (mth) $scope_done\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n interfaces Unknown (def) $scope_done\n isInterface Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isNone Unknown (mth) $scope_done\n isType Unknown (mth) $scope_done\n matchHook(1) Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n name Unknown (var) $scopeEmpty\n name:=(1) Unknown (var) $scopeEmpty\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setName(1) Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n typeParameterNames Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$104:\n &(1) Unknown (mth) $scope_done\n -(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n interfaces Unknown (mth) $scope_done\n isInterface Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isNone Unknown (mth) $scope_done\n isType Unknown (mth) $scope_done\n matchHook(1) Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n name Unknown (var) $scopeEmpty\n name:=(1) Unknown (var) $scopeEmpty\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setName(1) Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n typeParameterNames Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$105:\n &(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix\u00ac Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\nscope:$106:\n &(1) Unknown (mth) $scope_done\n -(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n interfaces Unknown (req) $scopeUniv\n isInterface Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isNone Unknown (mth) $scope_done\n isType Unknown (mth) $scope_done\n matchHook(1) Unknown (req) $scopeUniv\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n name Unknown (req) $scopeUniv\n name:=(1) Unknown (req) $scopeUniv\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setName(1) Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n typeParameterNames Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$107:\n &(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix\u00ac Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\nscope:$108:\n &(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix\u00ac Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\nscope:$109:\n &(1) Unknown (mth) $scope_done\n -(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n interfaces Unknown (mth) $scope_done\n isInterface Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isNone Unknown (mth) $scope_done\n isType Unknown (mth) $scope_done\n matchHook(1) Unknown (req) $scopeUniv\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n name Unknown (var) $scopeEmpty\n name:=(1) Unknown (var) $scopeEmpty\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setName(1) Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n typeParameterNames Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$110:\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (req) $scopeUniv\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n hash Unknown (req) $scopeUniv\n isMe(1) Boolean (go) $scope_boolean\n myIdentityHash Number (go) $scope_number\n prefix== Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$111:\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n myIdentityHash Number (go) $scope_number\n prefix== Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$112:\n *(1) Unknown (mth) $scope_done\n +(1) Unknown (mth) $scope_done\n -(1) Unknown (mth) $scope_done\n /(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString Unknown (mth) $scope_done\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n distanceTo(1) Unknown (mth) $scope_done\n dot(1) Number (mth) $scope_done\n hash Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n length Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n norm Unknown (mth) $scope_done\n prefix- Unknown (mth) $scope_done\n prefix== Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n reverseDivideNumber(1) Unknown (mth) $scope_done\n reverseMinusNumber(1) Unknown (mth) $scope_done\n reversePlusNumber(1) Unknown (mth) $scope_done\n reverseTimesNumber(1) Unknown (mth) $scope_done\n x Unknown (def) $scopeEmpty\n y Unknown (def) $scopeEmpty\n \u2260(1) Unknown (mth) $scope_done\n \u22c5(1) Number (mth) $scope_done\nscope:$113:\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n isMe(1) Boolean (go) $scope_boolean\n myIdentityHash Number (go) $scope_number\n new(1) Unknown (mth) $scope_done\nscope:$114:\n &(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString String (go) $scope_string\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nscope:$115:\n &(1) Unknown (mth) $scope_done\n ::(1) Unknown (mth) $scope_done\n ==(1) Unknown (mth) $scope_done\n asDebugString String (go) $scope_string\n asString Unknown (mth) $scope_done\n basicAsString String (go) $scope_string\n hash Unknown (mth) $scope_done\n isMe(1) Boolean (go) $scope_boolean\n isType Unknown (mth) $scope_done\n matches(1) Unknown (mth) $scope_done\n myIdentityHash Number (go) $scope_number\n prefix== Unknown (mth) $scope_done\n prefix\u00ac Unknown (mth) $scope_done\n prefix\u2260 Unknown (mth) $scope_done\n setTypeName(1) Unknown (mth) $scope_done\n |(1) Unknown (mth) $scope_done\n \u2260(1) Unknown (mth) $scope_done\nself:\n $101\ntypes:\n";
if (typeof originalSourceLines !== "undefined") {
originalSourceLines["nospec"] = [
"dialect \"none\"",
"// This module is a subsitute for the minispec dialect.",
"// It does no testing at all. It exists so that student code that",
"// depends on minispec can be run by the instuctor under gUnit,",
"// without getting confounding results from the minispec specifications.",
"",
"import \"standardBundle\" as standardBundle",
"",
"use standardBundle.open",
"",
"method expect(bb:Boolean) orSay (str:String) { }",
"",
"method expect (a) toBe (b) orSay (str:String) { }",
"",
"method expect (a) toBe (b) { }",
"",
"method expect (a) notToBe (b) { }",
"",
"method expect(n1:Number) toBe (n2:Number) within (epsilon) { }",
"",
"method expect(b:Procedure0) toRaise (desired) { }",
"",
"method expect(b:Procedure0) notToRaise (undesired) { }",
"",
"method expect(s) toHaveType (desired:Type) { }",
"",
"method expect(s) notToHaveType (undesired:Type) { }",
"",
"method describe (name) with (block) { }",
"",
"method specify (name:String) by (block) { }",
"",
"method numberOfErrorsToRerun:=(_) { }" ];
}
function gracecode_nospec() {
importedModules["nospec"] = this;
const var_$module = this;
this.definitionModule = "nospec";
this.definitionLine = 1;
setLineNumber(1); // compilenode dialect
// Dialect "none"
const var_$dialect = new GraceModule("none");
this.outer = var_$dialect;
setLineNumber(7); // compilenode import
// Import of "standardBundle" as standardBundle
if (typeof gracecode_standardBundle == "undefined")
throw new GraceExceptionPacket(EnvironmentExceptionObject,
new GraceString("could not find module standardBundle"));
var var_standardBundle = do_import("standardBundle", gracecode_standardBundle);
var func0 = function(argcv) { // accessor method standardBundle, line 7
const numArgs = arguments.length - 1;
if (numArgs > 0) raiseTypeArgError("standardBundle", 0, numArgs - 0);
return var_standardBundle;
}; // end of method standardBundle
this.methods["standardBundle"] = func0;
func0.methodName = "standardBundle";
func0.paramCounts = [0];
func0.paramNames = [];
func0.definitionLine = 7;
func0.definitionModule = "nospec";
func0.debug = "import";
func0.confidential = true;
this.closureKeys = this.closureKeys || [];
this.closureKeys.push("outer_nospec_1");
this.outer_nospec_1 = var_$dialect;
setLineNumber(9); // reuse call
var initFun1 = request(var_standardBundle, "open$build(3)", [null], this, [], []); // compileReuseCall
var func2 = function(argcv, var_bb, var_str) { // method expect(_)orSay(_), line 11
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)orSay(_)", 0, numArgs - 2);
}
setLineNumber(11); // compilenode member
var call3 = selfRequest(var_$module, "Boolean", [0]);
assertTypeOrMsg(var_bb, call3, "argument 1 in request of `expect(_)orSay(_)`", "Boolean");
var call4 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_str, call4, "argument 2 in request of `expect(_)orSay(_)`", "String");
return GraceDone;
}; // end of method expect(_)orSay(_)
var call5 = selfRequest(var_$module, "Boolean", [0]);
var call6 = selfRequest(var_$module, "String", [0]);
func2.paramTypes = [call5, call6];
this.methods["expect(1)orSay(1)"] = func2;
func2.methodName = "expect(1)orSay(1)";
func2.paramCounts = [1, 1];
func2.paramNames = ["bb", "str"];
func2.definitionLine = 11;
func2.definitionModule = "nospec";
var func7 = function(argcv, var_a, var_b, var_str) { // method expect(_)toBe(_)orSay(_), line 13
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 3) && (numArgs !== 3)) {
raiseTypeArgError("expect(_)toBe(_)orSay(_)", 0, numArgs - 3);
}
setLineNumber(13); // compilenode member
var call8 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_str, call8, "argument 3 in request of `expect(_)toBe(_)orSay(_)`", "String");
return GraceDone;
}; // end of method expect(_)toBe(_)orSay(_)
var call9 = selfRequest(var_$module, "String", [0]);
func7.paramTypes = [type_Unknown, type_Unknown, call9];
this.methods["expect(1)toBe(1)orSay(1)"] = func7;
func7.methodName = "expect(1)toBe(1)orSay(1)";
func7.paramCounts = [1, 1, 1];
func7.paramNames = ["a", "b", "str"];
func7.definitionLine = 13;
func7.definitionModule = "nospec";
var func10 = function(argcv, var_a, var_b) { // method expect(_)toBe(_), line 15
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)toBe(_)", 0, numArgs - 2);
}
return GraceDone;
}; // end of method expect(_)toBe(_)
this.methods["expect(1)toBe(1)"] = func10;
func10.methodName = "expect(1)toBe(1)";
func10.paramCounts = [1, 1];
func10.paramNames = ["a", "b"];
func10.definitionLine = 15;
func10.definitionModule = "nospec";
var func11 = function(argcv, var_a, var_b) { // method expect(_)notToBe(_), line 17
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)notToBe(_)", 0, numArgs - 2);
}
return GraceDone;
}; // end of method expect(_)notToBe(_)
this.methods["expect(1)notToBe(1)"] = func11;
func11.methodName = "expect(1)notToBe(1)";
func11.paramCounts = [1, 1];
func11.paramNames = ["a", "b"];
func11.definitionLine = 17;
func11.definitionModule = "nospec";
var func12 = function(argcv, var_n1, var_n2, var_epsilon) { // method expect(_)toBe(_)within(_), line 19
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 3) && (numArgs !== 3)) {
raiseTypeArgError("expect(_)toBe(_)within(_)", 0, numArgs - 3);
}
setLineNumber(19); // compilenode member
var call13 = selfRequest(var_$module, "Number", [0]);
assertTypeOrMsg(var_n1, call13, "argument 1 in request of `expect(_)toBe(_)within(_)`", "Number");
var call14 = selfRequest(var_$module, "Number", [0]);
assertTypeOrMsg(var_n2, call14, "argument 2 in request of `expect(_)toBe(_)within(_)`", "Number");
return GraceDone;
}; // end of method expect(_)toBe(_)within(_)
var call15 = selfRequest(var_$module, "Number", [0]);
var call16 = selfRequest(var_$module, "Number", [0]);
func12.paramTypes = [call15, call16, type_Unknown];
this.methods["expect(1)toBe(1)within(1)"] = func12;
func12.methodName = "expect(1)toBe(1)within(1)";
func12.paramCounts = [1, 1, 1];
func12.paramNames = ["n1", "n2", "epsilon"];
func12.definitionLine = 19;
func12.definitionModule = "nospec";
var func17 = function(argcv, var_b, var_desired) { // method expect(_)toRaise(_), line 21
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)toRaise(_)", 0, numArgs - 2);
}
setLineNumber(21); // compilenode member
var call18 = selfRequest(var_$module, "Procedure0", [0]);
assertTypeOrMsg(var_b, call18, "argument 1 in request of `expect(_)toRaise(_)`", "Procedure0");
return GraceDone;
}; // end of method expect(_)toRaise(_)
var call19 = selfRequest(var_$module, "Procedure0", [0]);
func17.paramTypes = [call19, type_Unknown];
this.methods["expect(1)toRaise(1)"] = func17;
func17.methodName = "expect(1)toRaise(1)";
func17.paramCounts = [1, 1];
func17.paramNames = ["b", "desired"];
func17.definitionLine = 21;
func17.definitionModule = "nospec";
var func20 = function(argcv, var_b, var_undesired) { // method expect(_)notToRaise(_), line 23
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)notToRaise(_)", 0, numArgs - 2);
}
setLineNumber(23); // compilenode member
var call21 = selfRequest(var_$module, "Procedure0", [0]);
assertTypeOrMsg(var_b, call21, "argument 1 in request of `expect(_)notToRaise(_)`", "Procedure0");
return GraceDone;
}; // end of method expect(_)notToRaise(_)
var call22 = selfRequest(var_$module, "Procedure0", [0]);
func20.paramTypes = [call22, type_Unknown];
this.methods["expect(1)notToRaise(1)"] = func20;
func20.methodName = "expect(1)notToRaise(1)";
func20.paramCounts = [1, 1];
func20.paramNames = ["b", "undesired"];
func20.definitionLine = 23;
func20.definitionModule = "nospec";
var func23 = function(argcv, var_s, var_desired) { // method expect(_)toHaveType(_), line 25
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)toHaveType(_)", 0, numArgs - 2);
}
setLineNumber(25); // compilenode member
var call24 = selfRequest(var_$module, "Type", [0]);
assertTypeOrMsg(var_desired, call24, "argument 2 in request of `expect(_)toHaveType(_)`", "Type");
return GraceDone;
}; // end of method expect(_)toHaveType(_)
var call25 = selfRequest(var_$module, "Type", [0]);
func23.paramTypes = [type_Unknown, call25];
this.methods["expect(1)toHaveType(1)"] = func23;
func23.methodName = "expect(1)toHaveType(1)";
func23.paramCounts = [1, 1];
func23.paramNames = ["s", "desired"];
func23.definitionLine = 25;
func23.definitionModule = "nospec";
var func26 = function(argcv, var_s, var_undesired) { // method expect(_)notToHaveType(_), line 27
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("expect(_)notToHaveType(_)", 0, numArgs - 2);
}
setLineNumber(27); // compilenode member
var call27 = selfRequest(var_$module, "Type", [0]);
assertTypeOrMsg(var_undesired, call27, "argument 2 in request of `expect(_)notToHaveType(_)`", "Type");
return GraceDone;
}; // end of method expect(_)notToHaveType(_)
var call28 = selfRequest(var_$module, "Type", [0]);
func26.paramTypes = [type_Unknown, call28];
this.methods["expect(1)notToHaveType(1)"] = func26;
func26.methodName = "expect(1)notToHaveType(1)";
func26.paramCounts = [1, 1];
func26.paramNames = ["s", "undesired"];
func26.definitionLine = 27;
func26.definitionModule = "nospec";
var func29 = function(argcv, var_name, var_block) { // method describe(_)with(_), line 29
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("describe(_)with(_)", 0, numArgs - 2);
}
return GraceDone;
}; // end of method describe(_)with(_)
this.methods["describe(1)with(1)"] = func29;
func29.methodName = "describe(1)with(1)";
func29.paramCounts = [1, 1];
func29.paramNames = ["name", "block"];
func29.definitionLine = 29;
func29.definitionModule = "nospec";
var func30 = function(argcv, var_name, var_block) { // method specify(_)by(_), line 31
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("specify(_)by(_)", 0, numArgs - 2);
}
setLineNumber(31); // compilenode member
var call31 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_name, call31, "argument 1 in request of `specify(_)by(_)`", "String");
return GraceDone;
}; // end of method specify(_)by(_)
var call32 = selfRequest(var_$module, "String", [0]);
func30.paramTypes = [call32, type_Unknown];
this.methods["specify(1)by(1)"] = func30;
func30.methodName = "specify(1)by(1)";
func30.paramCounts = [1, 1];
func30.paramNames = ["name", "block"];
func30.definitionLine = 31;
func30.definitionModule = "nospec";
var func33 = function(argcv, var___95____95__1) { // method numberOfErrorsToRerun:=(_), line 33
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 1) && (numArgs !== 1)) {
raiseTypeArgError("numberOfErrorsToRerun:=(_)", 0, numArgs - 1);
}
return GraceDone;
}; // end of method numberOfErrorsToRerun:=(_)
this.methods["numberOfErrorsToRerun:=(1)"] = func33;
func33.methodName = "numberOfErrorsToRerun:=(1)";
func33.paramCounts = [1];
func33.paramNames = ["__1"];
func33.definitionLine = 33;
func33.definitionModule = "nospec";
return this;
}
if (typeof global !== "undefined")
global.gracecode_nospec = gracecode_nospec;
if (typeof window !== "undefined")
window.gracecode_nospec = gracecode_nospec;
gracecode_nospec.definitionModule = "nospec";
gracecode_nospec.sourceFile = gracecode_nospec_sourceFile;
gracecode_nospec.sha256 = gracecode_nospec_sha256;
gracecode_nospec.minigraceRevision = gracecode_nospec_minigraceRevision;
gracecode_nospec.minigraceGeneration = gracecode_nospec_minigraceGeneration;
gracecode_nospec.imports = [ ["standardBundle", "7ae97ce42c7998e5a88e547ed5704778c1ad144f1af9834b3470064b36ee0799"] ];
gracecode_nospec.definitionLine = 1;