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