apple2js/test/util/asserts.ts
Will Scullin bb09a1ec33
Improve debug performance, abstract debugger. (#61)
Stop stringifying opcodes during runtime and only do so upon inspection. Moves all the debugging logic to a common place to allow building an interface.
2021-03-11 22:03:05 -08:00

7 lines
158 B
TypeScript

import { byte } from '../../js/types';
export const assertByte = (b: byte) => {
expect(b <= 0xFF).toEqual(true);
expect(b >= 0x00).toEqual(true);
};