import { describe, it } from 'node:test'; import assert from 'node:assert/strict'; import { uint8 } from 'moroutine'; describe('Uint8', () => { it('self-allocates and initializes to zero', () => { const v = uint8(); assert.equal(v.load(), 0); }); it('stores and loads a value', () => { const v = uint8(); v.store(42); assert.equal(v.load(), 42); }); it('exposes byteSize of 1', () => { assert.equal(uint8.byteSize, 1); }); it('exposes byteAlignment of 1', () => { assert.equal(uint8.byteAlignment, 1); }); });