From 197dd8eff88f70a1d3a31a5fe0952dbfb598c536 Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Tue, 9 Apr 2013 11:13:51 -0400 Subject: [PATCH] Clarify the difference between here docs and multi-line strings. --- src/about_strings.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/about_strings.rb b/src/about_strings.rb index 8a96a52..2496982 100644 --- a/src/about_strings.rb +++ b/src/about_strings.rb @@ -42,6 +42,7 @@ It was the worst of times. } assert_equal __(54), long_string.length assert_equal __(3), long_string.lines.count + assert_equal __("\n"), long_string[0,1] end def test_here_documents_can_also_handle_multiple_lines @@ -51,6 +52,7 @@ It was the worst of times. EOS assert_equal __(53), long_string.length assert_equal __(2), long_string.lines.count + assert_equal __("I"), long_string[0,1] end def test_plus_will_concatenate_two_strings