From be80f7e706cd6eb1c5f06e433804fda589a8968a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 10 Mar 2017 11:27:30 +0800 Subject: 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/max_line_len.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'test/compress/max_line_len.js') diff --git a/test/compress/max_line_len.js b/test/compress/max_line_len.js index b9e09178..7ad9ee0e 100644 --- a/test/compress/max_line_len.js +++ b/test/compress/max_line_len.js @@ -7,7 +7,13 @@ too_short: { return { c: 42, d: a(), e: "foo"}; } } - expect_exact: 'function f(a){\nreturn{\nc:42,\nd:a(),\ne:"foo"}}' + expect_exact: [ + 'function f(a){', + 'return{', + 'c:42,', + 'd:a(),', + 'e:"foo"}}', + ] expect_warnings: [ "WARN: Output exceeds 10 characters" ] @@ -22,7 +28,12 @@ just_enough: { return { c: 42, d: a(), e: "foo"}; } } - expect_exact: 'function f(a){\nreturn{c:42,\nd:a(),e:"foo"}\n}' + expect_exact: [ + 'function f(a){', + 'return{c:42,', + 'd:a(),e:"foo"}', + '}', + ] expect_warnings: [ ] } -- cgit v1.2.3 a70223df51c7317b3737d'>treecommitdiff
path: root/gnu/packages/myrddin.scm
AgeCommit message (Expand)Author
2022-01-14gnu: Add myrddin....* gnu/local.mk (GNU_SYSTEM_MODULES): Add myrddin.scm. * gnu/packages/myrddin.scm: New file. Co-authored-by: jgart <jgart@dismail.de> Co-authored-by: Jorge Acereda <jacereda@gmail.com> Co-authored-by: Raghav Gururajan <rg@raghavgururajan.name> Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Guix Together