14 of 15
Testing
std:test has describe, test and assert. A failing assertion marks that test as failed, and the other tests still run:
pleno
import { describe, test, assert } from "std:test";
describe("math", fn() {
test("adds", fn() {
assert.equal(1 + 1, 2);
});
});RunOn your computer, pleno test runs every test file in a folder and fails if any test does, so it works in CI.
Your turn
One test fails. Run the code, read the message, and fix slugify so both tests pass.