apple1js/test/util/asserts.ts

7 lines
154 B
TypeScript
Raw Normal View History

2023-08-06 14:32:11 +00:00
import { byte } from "../../js/types";
2023-08-06 13:20:11 +00:00
export const assertByte = (b: byte) => {
2023-08-06 14:32:11 +00:00
expect(b <= 0xff).toEqual(true);
expect(b >= 0x00).toEqual(true);
2023-08-06 13:20:11 +00:00
};