Extensive UI changes
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 28s

This commit is contained in:
Elijah 2026-10-20 19:46:08 -07:00
parent 6fc0a01c56
commit ddea7fc512
16 changed files with 675 additions and 493 deletions

View file

@ -17,6 +17,16 @@ test("bubble count tracks calories, remains visible at small amounts, and caps o
assert.equal(bubbleCount(2000, 2000, true), MAX_BUBBLES);
assert.equal(bubbleCount(20000, 2000, true), MAX_BUBBLES);
});
test("an 800 calorie meal drops in with 50 percent more bubbles per second", () => {
const world = createBubbleWorld(0, () => 0.5);
const target = bubbleCount(800, 2000, true);
world.setTarget(target);
for (let i = 0; i < 60; i++) world.step();
assert.equal(world.balls.length, 30);
for (let i = 0; i < target * 2 - 60; i++) world.step();
assert.equal(world.balls.length, target);
world.dispose();
});
test("new bubbles enter at the top, fall, collide and stay inside the calorie vessel", () => {
const world = createBubbleWorld(0, () => 0.5);
world.setTarget(8);