minigrace
Version:
A compiler for the Grace programming language
424 lines (423 loc) • 33.5 kB
JavaScript
let gracecode_notest_sourceFile = "/Users/black/Development/mg/gracelang/minigrace/modules/notest.grace";
let gracecode_notest_sha256 = "24484ddca684229bd12b0059c4ccef36153b9d8fcb888b6df261c2346a4768ea";
let gracecode_notest_minigraceRevision = "b57591d29fc5ee5270d114920bf671367b8c3ecb";
let gracecode_notest_minigraceGeneration = "5171";
if (typeof gctCache !== "undefined")
gctCache["notest"] = "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 assert(b:Procedure0)shouldRaise(desired:Unknown) \u2192 Unknown\n assert(b:Procedure0)shouldntRaise(undesired:Unknown) \u2192 Unknown\n assert(bb:Boolean) \u2192 Unknown\n assert(bb:Boolean)description(str:String) \u2192 Unknown\n assert(n1:Number)shouldEqual(n2:Number)within(epsilon:Unknown) \u2192 Unknown\n assert(s1:Object)shouldBe(s2:Object) \u2192 Unknown\n assert(s1:Object)shouldntBe(s2:Object) \u2192 Unknown\n assert(s:Object)hasType(desired:Type) \u2192 Unknown\n assertType(T:Type)describes(value:Unknown) \u2192 Unknown\n deny(bb:Boolean) \u2192 Unknown\n deny(bb:Boolean)description(str:String) \u2192 Unknown\n deny(s:Object)hasType(undesired:Type) \u2192 Unknown\n test(name:String)by(block:Unknown) \u2192 Unknown\nmodules:\n standardBundle\npath:\n /Users/black/Development/mg/gracelang/minigrace/modules/notest.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 assert(1) Unknown (mth) $scope_done\n assert(1)description(1) Unknown (mth) $scope_done\n assert(1)hasType(1) Unknown (mth) $scope_done\n assert(1)shouldBe(1) Unknown (mth) $scope_done\n assert(1)shouldEqual(1)within(1) Unknown (mth) $scope_done\n assert(1)shouldRaise(1) Unknown (mth) $scope_done\n assert(1)shouldntBe(1) Unknown (mth) $scope_done\n assert(1)shouldntRaise(1) Unknown (mth) $scope_done\n assertType(1)describes(1) Unknown (mth) $scope_done\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 deny(1) Unknown (mth) $scope_done\n deny(1)description(1) Unknown (mth) $scope_done\n deny(1)hasType(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 failBecause(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 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 test(1)by(1) Unknown (mth) $scope_done\n testSuite(1) Unknown (mth) $scope_done\n testSuiteNamed(1)with(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["notest"] = [
"dialect \"none\"",
"// This module is a subsitute for the minitest dialect.",
"// It does no testing at all. It exists so that student code that",
"// depends on minitest can be run by the instuctor under gUnit,",
"// without getting confounding results from the minitest tests.",
"",
"import \"standardBundle\" as standardBundle",
"",
"use standardBundle.open",
"",
"method assert(bb:Boolean) description(str:String) { }",
"",
"method deny(bb:Boolean) description(str:String) { }",
"",
"method assert(bb:Boolean) { }",
"",
"method deny(bb:Boolean) { }",
"",
"method assert(s1:Object) shouldBe (s2:Object) { }",
"",
"method assert(s1:Object) shouldntBe (s2:Object) { }",
"",
"method assert(n1:Number) shouldEqual (n2:Number) within (epsilon) { }",
"",
"method assert(b:Procedure0) shouldRaise (desired) { }",
"",
"method assert(b:Procedure0) shouldntRaise (undesired) { }",
"",
"method assert(s:Object) hasType (desired:Type) { }",
"",
"method deny(s:Object) hasType (undesired:Type) { }",
"",
"method assertType(T:Type) describes (value) { }",
"",
"method failBecause(reason) { }",
"",
"method testSuiteNamed (name) with (block) { }",
"",
"method testSuite (block) { }",
"",
"method test(name:String) by(block) { }",
"" ];
}
function gracecode_notest() {
importedModules["notest"] = this;
const var_$module = this;
this.definitionModule = "notest";
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 = "notest";
func0.debug = "import";
func0.confidential = true;
this.closureKeys = this.closureKeys || [];
this.closureKeys.push("outer_notest_1");
this.outer_notest_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 assert(_)description(_), line 11
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)description(_)", 0, numArgs - 2);
}
setLineNumber(11); // compilenode member
var call3 = selfRequest(var_$module, "Boolean", [0]);
assertTypeOrMsg(var_bb, call3, "argument 1 in request of `assert(_)description(_)`", "Boolean");
var call4 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_str, call4, "argument 2 in request of `assert(_)description(_)`", "String");
return GraceDone;
}; // end of method assert(_)description(_)
var call5 = selfRequest(var_$module, "Boolean", [0]);
var call6 = selfRequest(var_$module, "String", [0]);
func2.paramTypes = [call5, call6];
this.methods["assert(1)description(1)"] = func2;
func2.methodName = "assert(1)description(1)";
func2.paramCounts = [1, 1];
func2.paramNames = ["bb", "str"];
func2.definitionLine = 11;
func2.definitionModule = "notest";
var func7 = function(argcv, var_bb, var_str) { // method deny(_)description(_), line 13
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("deny(_)description(_)", 0, numArgs - 2);
}
setLineNumber(13); // compilenode member
var call8 = selfRequest(var_$module, "Boolean", [0]);
assertTypeOrMsg(var_bb, call8, "argument 1 in request of `deny(_)description(_)`", "Boolean");
var call9 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_str, call9, "argument 2 in request of `deny(_)description(_)`", "String");
return GraceDone;
}; // end of method deny(_)description(_)
var call10 = selfRequest(var_$module, "Boolean", [0]);
var call11 = selfRequest(var_$module, "String", [0]);
func7.paramTypes = [call10, call11];
this.methods["deny(1)description(1)"] = func7;
func7.methodName = "deny(1)description(1)";
func7.paramCounts = [1, 1];
func7.paramNames = ["bb", "str"];
func7.definitionLine = 13;
func7.definitionModule = "notest";
var func12 = function(argcv, var_bb) { // method assert(_), line 15
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 1) && (numArgs !== 1)) {
raiseTypeArgError("assert(_)", 0, numArgs - 1);
}
setLineNumber(15); // compilenode member
var call13 = selfRequest(var_$module, "Boolean", [0]);
assertTypeOrMsg(var_bb, call13, "argument to request of `assert(_)`", "Boolean");
return GraceDone;
}; // end of method assert(_)
var call14 = selfRequest(var_$module, "Boolean", [0]);
func12.paramTypes = [call14];
this.methods["assert(1)"] = func12;
func12.methodName = "assert(1)";
func12.paramCounts = [1];
func12.paramNames = ["bb"];
func12.definitionLine = 15;
func12.definitionModule = "notest";
var func15 = function(argcv, var_bb) { // method deny(_), line 17
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 1) && (numArgs !== 1)) {
raiseTypeArgError("deny(_)", 0, numArgs - 1);
}
setLineNumber(17); // compilenode member
var call16 = selfRequest(var_$module, "Boolean", [0]);
assertTypeOrMsg(var_bb, call16, "argument to request of `deny(_)`", "Boolean");
return GraceDone;
}; // end of method deny(_)
var call17 = selfRequest(var_$module, "Boolean", [0]);
func15.paramTypes = [call17];
this.methods["deny(1)"] = func15;
func15.methodName = "deny(1)";
func15.paramCounts = [1];
func15.paramNames = ["bb"];
func15.definitionLine = 17;
func15.definitionModule = "notest";
var func18 = function(argcv, var_s1, var_s2) { // method assert(_)shouldBe(_), line 19
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)shouldBe(_)", 0, numArgs - 2);
}
setLineNumber(19); // compilenode member
var call19 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s1, call19, "argument 1 in request of `assert(_)shouldBe(_)`", "Object");
var call20 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s2, call20, "argument 2 in request of `assert(_)shouldBe(_)`", "Object");
return GraceDone;
}; // end of method assert(_)shouldBe(_)
var call21 = selfRequest(var_$module, "Object", [0]);
var call22 = selfRequest(var_$module, "Object", [0]);
func18.paramTypes = [call21, call22];
this.methods["assert(1)shouldBe(1)"] = func18;
func18.methodName = "assert(1)shouldBe(1)";
func18.paramCounts = [1, 1];
func18.paramNames = ["s1", "s2"];
func18.definitionLine = 19;
func18.definitionModule = "notest";
var func23 = function(argcv, var_s1, var_s2) { // method assert(_)shouldntBe(_), line 21
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)shouldntBe(_)", 0, numArgs - 2);
}
setLineNumber(21); // compilenode member
var call24 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s1, call24, "argument 1 in request of `assert(_)shouldntBe(_)`", "Object");
var call25 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s2, call25, "argument 2 in request of `assert(_)shouldntBe(_)`", "Object");
return GraceDone;
}; // end of method assert(_)shouldntBe(_)
var call26 = selfRequest(var_$module, "Object", [0]);
var call27 = selfRequest(var_$module, "Object", [0]);
func23.paramTypes = [call26, call27];
this.methods["assert(1)shouldntBe(1)"] = func23;
func23.methodName = "assert(1)shouldntBe(1)";
func23.paramCounts = [1, 1];
func23.paramNames = ["s1", "s2"];
func23.definitionLine = 21;
func23.definitionModule = "notest";
var func28 = function(argcv, var_n1, var_n2, var_epsilon) { // method assert(_)shouldEqual(_)within(_), line 23
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 3) && (numArgs !== 3)) {
raiseTypeArgError("assert(_)shouldEqual(_)within(_)", 0, numArgs - 3);
}
setLineNumber(23); // compilenode member
var call29 = selfRequest(var_$module, "Number", [0]);
assertTypeOrMsg(var_n1, call29, "argument 1 in request of `assert(_)shouldEqual(_)within(_)`", "Number");
var call30 = selfRequest(var_$module, "Number", [0]);
assertTypeOrMsg(var_n2, call30, "argument 2 in request of `assert(_)shouldEqual(_)within(_)`", "Number");
return GraceDone;
}; // end of method assert(_)shouldEqual(_)within(_)
var call31 = selfRequest(var_$module, "Number", [0]);
var call32 = selfRequest(var_$module, "Number", [0]);
func28.paramTypes = [call31, call32, type_Unknown];
this.methods["assert(1)shouldEqual(1)within(1)"] = func28;
func28.methodName = "assert(1)shouldEqual(1)within(1)";
func28.paramCounts = [1, 1, 1];
func28.paramNames = ["n1", "n2", "epsilon"];
func28.definitionLine = 23;
func28.definitionModule = "notest";
var func33 = function(argcv, var_b, var_desired) { // method assert(_)shouldRaise(_), line 25
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)shouldRaise(_)", 0, numArgs - 2);
}
setLineNumber(25); // compilenode member
var call34 = selfRequest(var_$module, "Procedure0", [0]);
assertTypeOrMsg(var_b, call34, "argument 1 in request of `assert(_)shouldRaise(_)`", "Procedure0");
return GraceDone;
}; // end of method assert(_)shouldRaise(_)
var call35 = selfRequest(var_$module, "Procedure0", [0]);
func33.paramTypes = [call35, type_Unknown];
this.methods["assert(1)shouldRaise(1)"] = func33;
func33.methodName = "assert(1)shouldRaise(1)";
func33.paramCounts = [1, 1];
func33.paramNames = ["b", "desired"];
func33.definitionLine = 25;
func33.definitionModule = "notest";
var func36 = function(argcv, var_b, var_undesired) { // method assert(_)shouldntRaise(_), line 27
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)shouldntRaise(_)", 0, numArgs - 2);
}
setLineNumber(27); // compilenode member
var call37 = selfRequest(var_$module, "Procedure0", [0]);
assertTypeOrMsg(var_b, call37, "argument 1 in request of `assert(_)shouldntRaise(_)`", "Procedure0");
return GraceDone;
}; // end of method assert(_)shouldntRaise(_)
var call38 = selfRequest(var_$module, "Procedure0", [0]);
func36.paramTypes = [call38, type_Unknown];
this.methods["assert(1)shouldntRaise(1)"] = func36;
func36.methodName = "assert(1)shouldntRaise(1)";
func36.paramCounts = [1, 1];
func36.paramNames = ["b", "undesired"];
func36.definitionLine = 27;
func36.definitionModule = "notest";
var func39 = function(argcv, var_s, var_desired) { // method assert(_)hasType(_), line 29
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assert(_)hasType(_)", 0, numArgs - 2);
}
setLineNumber(29); // compilenode member
var call40 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s, call40, "argument 1 in request of `assert(_)hasType(_)`", "Object");
var call41 = selfRequest(var_$module, "Type", [0]);
assertTypeOrMsg(var_desired, call41, "argument 2 in request of `assert(_)hasType(_)`", "Type");
return GraceDone;
}; // end of method assert(_)hasType(_)
var call42 = selfRequest(var_$module, "Object", [0]);
var call43 = selfRequest(var_$module, "Type", [0]);
func39.paramTypes = [call42, call43];
this.methods["assert(1)hasType(1)"] = func39;
func39.methodName = "assert(1)hasType(1)";
func39.paramCounts = [1, 1];
func39.paramNames = ["s", "desired"];
func39.definitionLine = 29;
func39.definitionModule = "notest";
var func44 = function(argcv, var_s, var_undesired) { // method deny(_)hasType(_), line 31
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("deny(_)hasType(_)", 0, numArgs - 2);
}
setLineNumber(31); // compilenode member
var call45 = selfRequest(var_$module, "Object", [0]);
assertTypeOrMsg(var_s, call45, "argument 1 in request of `deny(_)hasType(_)`", "Object");
var call46 = selfRequest(var_$module, "Type", [0]);
assertTypeOrMsg(var_undesired, call46, "argument 2 in request of `deny(_)hasType(_)`", "Type");
return GraceDone;
}; // end of method deny(_)hasType(_)
var call47 = selfRequest(var_$module, "Object", [0]);
var call48 = selfRequest(var_$module, "Type", [0]);
func44.paramTypes = [call47, call48];
this.methods["deny(1)hasType(1)"] = func44;
func44.methodName = "deny(1)hasType(1)";
func44.paramCounts = [1, 1];
func44.paramNames = ["s", "undesired"];
func44.definitionLine = 31;
func44.definitionModule = "notest";
var func49 = function(argcv, var_T, var_value) { // method assertType(_)describes(_), line 33
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("assertType(_)describes(_)", 0, numArgs - 2);
}
setLineNumber(33); // compilenode member
var call50 = selfRequest(var_$module, "Type", [0]);
assertTypeOrMsg(var_T, call50, "argument 1 in request of `assertType(_)describes(_)`", "Type");
return GraceDone;
}; // end of method assertType(_)describes(_)
var call51 = selfRequest(var_$module, "Type", [0]);
func49.paramTypes = [call51, type_Unknown];
this.methods["assertType(1)describes(1)"] = func49;
func49.methodName = "assertType(1)describes(1)";
func49.paramCounts = [1, 1];
func49.paramNames = ["T", "value"];
func49.definitionLine = 33;
func49.definitionModule = "notest";
var func52 = function(argcv, var_reason) { // method failBecause(_), line 35
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 1) && (numArgs !== 1)) {
raiseTypeArgError("failBecause(_)", 0, numArgs - 1);
}
return GraceDone;
}; // end of method failBecause(_)
this.methods["failBecause(1)"] = func52;
func52.methodName = "failBecause(1)";
func52.paramCounts = [1];
func52.paramNames = ["reason"];
func52.definitionLine = 35;
func52.definitionModule = "notest";
var func53 = function(argcv, var_name, var_block) { // method testSuiteNamed(_)with(_), line 37
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("testSuiteNamed(_)with(_)", 0, numArgs - 2);
}
return GraceDone;
}; // end of method testSuiteNamed(_)with(_)
this.methods["testSuiteNamed(1)with(1)"] = func53;
func53.methodName = "testSuiteNamed(1)with(1)";
func53.paramCounts = [1, 1];
func53.paramNames = ["name", "block"];
func53.definitionLine = 37;
func53.definitionModule = "notest";
var func54 = function(argcv, var_block) { // method testSuite(_), line 39
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 1) && (numArgs !== 1)) {
raiseTypeArgError("testSuite(_)", 0, numArgs - 1);
}
return GraceDone;
}; // end of method testSuite(_)
this.methods["testSuite(1)"] = func54;
func54.methodName = "testSuite(1)";
func54.paramCounts = [1];
func54.paramNames = ["block"];
func54.definitionLine = 39;
func54.definitionModule = "notest";
var func55 = function(argcv, var_name, var_block) { // method test(_)by(_), line 41
var returnTarget = invocationCount;
invocationCount++;
const numArgs = arguments.length - 1;
if ((numArgs > 2) && (numArgs !== 2)) {
raiseTypeArgError("test(_)by(_)", 0, numArgs - 2);
}
setLineNumber(41); // compilenode member
var call56 = selfRequest(var_$module, "String", [0]);
assertTypeOrMsg(var_name, call56, "argument 1 in request of `test(_)by(_)`", "String");
return GraceDone;
}; // end of method test(_)by(_)
var call57 = selfRequest(var_$module, "String", [0]);
func55.paramTypes = [call57, type_Unknown];
this.methods["test(1)by(1)"] = func55;
func55.methodName = "test(1)by(1)";
func55.paramCounts = [1, 1];
func55.paramNames = ["name", "block"];
func55.definitionLine = 41;
func55.definitionModule = "notest";
return this;
}
if (typeof global !== "undefined")
global.gracecode_notest = gracecode_notest;
if (typeof window !== "undefined")
window.gracecode_notest = gracecode_notest;
gracecode_notest.definitionModule = "notest";
gracecode_notest.sourceFile = gracecode_notest_sourceFile;
gracecode_notest.sha256 = gracecode_notest_sha256;
gracecode_notest.minigraceRevision = gracecode_notest_minigraceRevision;
gracecode_notest.minigraceGeneration = gracecode_notest_minigraceGeneration;
gracecode_notest.imports = [ ["standardBundle", "7ae97ce42c7998e5a88e547ed5704778c1ad144f1af9834b3470064b36ee0799"] ];
gracecode_notest.definitionLine = 1;