|
@@ -18,7 +18,7 @@ function CalculateNounPlusVerb(noun, verb, expected) {
|
|
|
|
|
|
const comp = new Computer(freshMemory);
|
|
const comp = new Computer(freshMemory);
|
|
comp.Run();
|
|
comp.Run();
|
|
- return comp.stack.Get(0) == expected;
|
|
|
|
|
|
+ return comp.stack.GetAtIndex(0, 1) == expected;
|
|
}
|
|
}
|
|
|
|
|
|
function LoopNounsAndVerbs() {
|
|
function LoopNounsAndVerbs() {
|