mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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!");
|
||||
Reference in New Issue
Block a user