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