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