// Module 6 Expansion Drop: HOT. The scenario is in expansion/README.md. import { expect, test } from "vitest"; import { newBaba } from "../src/harness"; test("test_06x_hot_word", () => { const b = newBaba({ width: 5, height: 1, objects: [] }); for (const [word, x] of [ ["LAVA", 0], ["IS", 1], ["HOT", 2], ["AND", 3], ["PUSH", 4], ] as const) { b.place(`text:${word}`, x, 0); } expect(b.rules()).toEqual(["LAVA IS HOT", "LAVA IS PUSH", "TEXT IS PUSH"]); });