mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import assert from "node:assert";
|
|
import { floatToUint8 } from "../src/utils.js";
|
|
|
|
assert.strictEqual(floatToUint8(0), 0, "floatToUint8 test 1 Failed");
|
|
assert.strictEqual(floatToUint8(1), 255, "floatToUint8 test 2 Failed");
|
|
|
|
console.log("✅ All test cases passed!");
|