More fluid apis

This commit is contained in:
2026-10-28 13:04:24 -03:00
parent 1539cf6933
commit 3cc33ea10c
7 changed files with 36 additions and 4 deletions
+8
View File
@@ -133,3 +133,11 @@ Deno.test("fluids are the same when their ids and data are, whatever order the d
assertEquals(server, [true, true, false, false, false]);
assertEquals(client, server);
});
Deno.test("every fluid's id is listed once, without data, on the server and clients", async () => {
const sides = await both_sides((fluids) => fluids.ids());
for (const ids of [sides.server, sides.client] as string[][]) {
assert(ids.includes("testfluids:syrup") && ids.includes("testfluids:tree_sap"), ids.join());
assertEquals(new Set(ids).size, ids.length);
}
});