Lines Matching full:be
75 …expect(globalScope.getChildVariableScope().length, "should not have any children!").to.be.equal(0);
76 … expect(globalScope.getParentVariableScope(), "should not have any children!").to.be.equal(null);
77 …lScope.getBindingNode() == sourceFile, "functionblock.node should equal to sourceFile").to.be.true;
105 expect(children.length, "should have 2 child!").to.be.equal(2);
106 expect(parent, "should not have any children!").to.be.equal(null);
107 … expect(bindingNode, "functionblock.root should equal to sourceFile").to.be.deep.equal(sourceFile);
113 expect(grandchildren0.length == 2, "son should have two children!").to.be.true;
121 expect(parentOfGrandson0).to.be.equal(son0);
122 expect(grandgrandchiildren0.length).to.be.equal(0);
126 expect(grandson1.getParentVariableScope()).to.be.equal(son0);
127 expect(grandson1.getChildVariableScope().length).to.be.equal(0);
134 expect(grandchildren1.length == 0, "son1 should have two children!").to.be.true;
151 expect(postOrderVariableScopes[0]).to.be.deep.equal(globalScope);
176 expect(postOrderVariableScopes[0]).to.be.deep.equal(children[0].getChildVariableScope()[0]);
177 expect(postOrderVariableScopes[1]).to.be.deep.equal(children[0].getChildVariableScope()[1]);
178 expect(postOrderVariableScopes[2]).to.be.deep.equal(children[0]);
179 expect(postOrderVariableScopes[3]).to.be.deep.equal(children[1]);
180 expect(postOrderVariableScopes[4]).to.be.deep.equal(globalScope);
231 expect(postOrderVariableScopes[0]).to.be.deep.equal(children[0]);
232 … expect(postOrderVariableScopes[1]).to.be.deep.equal(grandchildren1[0].getChildVariableScope()[0]);
233 … expect(postOrderVariableScopes[2]).to.be.deep.equal(grandchildren1[0].getChildVariableScope()[1]);
234 expect(postOrderVariableScopes[3]).to.be.deep.equal(grandchildren1[0]);
235 expect(postOrderVariableScopes[4]).to.be.deep.equal(children[1]);
236 expect(postOrderVariableScopes[5]).to.be.deep.equal(globalScope);
258 expect(checkInstructions(outInsns, expected)).to.be.true;
278 expect(checkInstructions(outInsns, expected)).to.be.true;
297 expect(checkInstructions(outInsns, expected)).to.be.true;
321 expect(checkInstructions(outInsns, expected)).to.be.true;
344 expect(checkInstructions(outInsns, expected)).to.be.true;
376 expect(checkInstructions(pg.getInsns(), expected_main)).to.be.true;
378 expect(checkInstructions(pg.getInsns(), expected_func)).to.be.true;
414 … expect(checkInstructions(pg.getInsns(), expected_main), "check main insns").to.be.true;
415 expect(scope.getNumLexEnv(), "main scope has 0 lexvar").to.be.equal(0);
416 // expect(scope.hasLexEnv(), "main scope has lexenv").to.be.true;
419 … expect(checkInstructions(pg.getInsns(), expected_func), "check func insns").to.be.true;
420 expect(scope.getNumLexEnv(), "func scope has 1 lexvar").to.be.equal(0);
421 // expect(scope.hasLexEnv(), "func scope has lexenv").to.be.true;
493 expect(outerA instanceof LocalVariable, "a in outer is local variable").to.be.true;
494 expect(outerB instanceof LocalVariable, "b in outer is local variable").to.be.true;
495 …expect((<FunctionScope>outerScope).getNumLexEnv(), "number of lexvar at outer scope").to.be.equal(…
500 expect(searchRlt!.level).to.be.equal(0);
501 expect(searchRlt!.scope, "a is defined in outerscope").to.be.deep.equal(outerScope);
502 expect(anonymousA, "no a in anonymous function").to.be.undefined;
506 expect(globalA instanceof GlobalVariable, "globalA is GlobalVariable").to.be.true;
508 …eckInstructions(anonymousPg!.getInsns(), expect_anonymous), "check anonymous func ins").to.be.true;
509 … expect(checkInstructions(outerPg!.getInsns(), expect_outer), "check outer func ins").to.be.true;