Skip to content

Commit b3dcd38

Browse files
committed
clarify an assert_equal + newline + backslash n test output to be more readable
[git-p4: depot-paths = "//src/minitest/dev/": change = 14552]
1 parent 14c87ef commit b3dcd38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/minitest/test_minitest_assertions.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,13 @@ def test_assert_equal_string_bug791
318318
end
319319

320320
def test_assert_equal_string_both_escaped_unescaped_newlines
321-
msg = <<~EOM
321+
msg = <<~'EOM' # NOTE: single quotes on heredoc
322322
--- expected
323323
+++ actual
324324
@@ -1,2 +1 @@
325-
-"A\\n
325+
-"A\n
326326
-B"
327-
+"A\\n\\\\nB"
327+
+"A\n\\nB"
328328
EOM
329329

330330
assert_triggered msg do

0 commit comments

Comments
 (0)