Skip to content

Commit

Permalink
Add test of bytes.dedent
Browse files Browse the repository at this point in the history
---
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mppf committed Dec 12, 2023
1 parent 402e6f2 commit 5040e43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/types/bytes/dedent.chpl
Original file line number Diff line number Diff line change
@@ -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());
4 changes: 4 additions & 0 deletions test/types/bytes/dedent.good
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

hello
there

0 comments on commit 5040e43

Please sign in to comment.