diff options
| author | Uri Shaked | 2020-08-01 15:47:35 +0300 |
|---|---|---|
| committer | Uri Shaked | 2020-08-01 15:47:35 +0300 |
| commit | b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b (patch) | |
| tree | 00c2dce9476c7c412b2d81445249d681ef368994 /src/utils | |
| parent | chore(deps): npm audit fix (diff) | |
| download | avr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.tar.gz avr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.tar.bz2 avr8js-b0bfe885f7f53d6ae0ff03977b4cd9f2b3eb856b.zip | |
test(timer): use TestProgramRunner
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/test-utils.ts | 2 |
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 { |
