support multi-line string in tests (#1590)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 10 Mar 2017 03:27:30 +0000 (11:27 +0800)
committerGitHub <noreply@github.com>
Fri, 10 Mar 2017 03:27:30 +0000 (11:27 +0800)
commitbe80f7e706cd6eb1c5f06e433804fda589a8968a
tree736f9545e201a14e6aaf461d7289061f6687a0a4
parentcf45e2f79b543ebae60c5de54166b20da4522c25
support multi-line string in tests (#1590)

`expect_exact` sometimes have multiple lines and `\n` are hard to read.

Use array of strings to emulate line breaks and improve readability.
test/compress/loops.js
test/compress/max_line_len.js
test/run-tests.js