function compareAndWrite(actual, expected, filename) {
    assert.equal(actual, expected, filename)
    if (actual !== expected) {
        fs.writeFileSync(`${filename}.actual.js`, actual)
        return false
    }
    return true
}
@param {string} actual
@param {string} expected
@param {string} filename
@return {boolean} whether actual is equal to expected