From 5040e43f19d492dbe566b142d598068431ca28f3 Mon Sep 17 00:00:00 2001 From: Michael Ferguson Date: Tue, 12 Dec 2023 10:34:50 -0500 Subject: [PATCH] Add test of bytes.dedent --- Signed-off-by: Michael Ferguson --- test/types/bytes/dedent.chpl | 8 ++++++++ test/types/bytes/dedent.good | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 test/types/bytes/dedent.chpl create mode 100644 test/types/bytes/dedent.good diff --git a/test/types/bytes/dedent.chpl b/test/types/bytes/dedent.chpl new file mode 100644 index 000000000000..94eee762450f --- /dev/null +++ b/test/types/bytes/dedent.chpl @@ -0,0 +1,8 @@ +// mainly, just check that bytes.dedent compiles + +var x:bytes = b""" + hello + there + """; +var y = x.dedent(ignoreFirst=true); +writeln(y.decode()); diff --git a/test/types/bytes/dedent.good b/test/types/bytes/dedent.good new file mode 100644 index 000000000000..d487197000ff --- /dev/null +++ b/test/types/bytes/dedent.good @@ -0,0 +1,4 @@ + +hello +there +