Concepts

Regression check

Try the free JavaScript compiler

Preserve a previously failing input and assert the intended result after the fix.

Formal Syntax & Structure

javascript syntaxjavascript
assert.strictEqual(actual, expected)

Working Example

Example Snippetjavascript
(async () => {const assert=require("node:assert/strict"); const count=xs=>xs.length; assert.strictEqual(count(["a"]),1); assert.strictEqual(count([]),0); console.log("fixed");})()
JavaScript Reference