aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/utils/test-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/test-utils.ts b/src/utils/test-utils.ts
index dfb6b32..ca483f3 100644
--- a/src/utils/test-utils.ts
+++ b/src/utils/test-utils.ts
@@ -7,7 +7,7 @@ export function asmProgram(source: string) {
if (errors.length) {
throw new Error('Assembly failed: ' + errors);
}
- return { program: new Uint16Array(bytes.buffer), lines };
+ return { program: new Uint16Array(bytes.buffer), lines, instructionCount: lines.length };
}
export class TestProgramRunner {