(what, detail)
| 39 | pass++; |
| 40 | }; |
| 41 | const bad = (what, detail) => { |
| 42 | console.log(` FAIL ${what}${detail ? ` (${detail})` : ''}`); |
| 43 | fail++; |
| 44 | }; |
| 45 | const check = (what, condition, detail) => (condition ? ok(what) : bad(what, detail)); |
| 46 | const same = (what, expected, actual) => |
| 47 | check( |