Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Aquaticat/Monochromatic. TypeScript and Rust monorepo: Claude Code and Pi coding-agent plugins, a m
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536/** Tests the measurement sentinel and its narrowing guard. @module */
import { describe, it,} from '@monochromatic-dev/module-test/ts';
import { isMeasured, UNMEASURED,} from './measure.ts';
await describe({ name: isMeasured.name, children: [ it({ name: 'accepts a numeric measurement, including a legitimate zero', fn: async ({ expect, }) => { expect(isMeasured(0,)).toBe(true,); expect(isMeasured(4_096,)).toBe(true,); }, }),
it({ name: 'rejects the UNMEASURED sentinel', fn: async ({ expect, }) => { expect(isMeasured(UNMEASURED,)).toBe(false,); }, }), ],});