mvp-ai's picture
download
raw
326 Bytes
// Copyright (c) 2026 the Zuke contributors
// SPDX-License-Identifier: MIT
import assert from "node:assert/strict";
import { clamp } from "./mod.ts";
Deno.test("clamp keeps a value inside the range", () => {
assert.equal(clamp(5, 0, 10), 5);
assert.equal(clamp(-1, 0, 10), 0);
assert.equal(clamp(11, 0, 10), 10);
});

Xet Storage Details

Size:
326 Bytes
·
Xet hash:
bfda4732eac21d3f071c4a51d07c1bfd897e421609806426b37d69e7e77cde44

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.