Skip to content

Commit 16567bd

Browse files
Copilotbrunoborges
andcommitted
Fix text block assertion to check for real newlines instead of absence of escaped ones
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent fc86786 commit 16567bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/language/text-blocks-for-multiline-strings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ proofCode: |-
5656
"age": 30
5757
}""";
5858
if (!json.contains("Duke")) throw new AssertionError("text block content missing");
59-
if (json.contains("\\n")) throw new AssertionError("should not contain literal \\n");
59+
if (!json.contains("\n")) throw new AssertionError("text block should contain real newlines");
6060
IO.println("text blocks: OK");

0 commit comments

Comments
 (0)