(a, b)
| 12 | const report = () => JSON.parse(read('verification/w12a/command-overlay.json')); |
| 13 | |
| 14 | function intersectionArea(a, b) { |
| 15 | const width = Math.max(0, Math.min(a.x + a.width, b.x + b.width) - Math.max(a.x, b.x)); |
| 16 | const height = Math.max(0, Math.min(a.y + a.height, b.y + b.height) - Math.max(a.y, b.y)); |
| 17 | return width * height; |
| 18 | } |
| 19 | |
| 20 | test('AC1: the real post-search state keeps its help without covering unfold', () => { |
| 21 | const r = report(); |