selfDefending test implementation

This commit is contained in:
sanex3339
2016-06-04 18:35:13 +03:00
parent 21b938daaa
commit b5948435ae
@@ -37,7 +37,7 @@ export class SelfDefendingUnicodeNode extends Node {
randomIndex: number = 0;
if (programBodyLength > 2) {
randomIndex = Utils.getRandomInteger(programBodyLength, programBodyLength / 2);
randomIndex = Utils.getRandomInteger(programBodyLength / 2, programBodyLength);
}
NodeUtils.insertNodeAtIndex(blockScopeNode.body, this.getNode(), randomIndex);