Skip to content

Commit ca0ea5e

Browse files
aaronbrezelclaude
andcommitted
test: cover createSeededRandom no-seed branch, fix utils coverage threshold
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6716e4c commit ca0ea5e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

__tests__/utils.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ describe("createSeededRandom", () => {
8989
expect(val).toBeLessThan(1);
9090
}
9191
});
92+
93+
it("produces values in [0, 1) when called without a seed", () => {
94+
const rng = createSeededRandom();
95+
const val = rng();
96+
expect(val).toBeGreaterThanOrEqual(0);
97+
expect(val).toBeLessThan(1);
98+
});
9299
});
93100

94101
describe("sampleRows", () => {

0 commit comments

Comments
 (0)