Merge pull request #33 from tjkirch/string-fixes
Small fixes to about_strings
This commit is contained in:
@@ -40,7 +40,8 @@ class AboutStrings < EdgeCase::Koan
|
||||
It was the best of times,
|
||||
It was the worst of times.
|
||||
}
|
||||
assert_equal __, long_string.size
|
||||
assert_equal __, long_string.length
|
||||
assert_equal __, long_string.lines.count
|
||||
end
|
||||
|
||||
def test_here_documents_can_also_handle_multiple_lines
|
||||
@@ -48,7 +49,8 @@ It was the worst of times.
|
||||
It was the best of times,
|
||||
It was the worst of times.
|
||||
EOS
|
||||
assert_equal __, long_string.size
|
||||
assert_equal __, long_string.length
|
||||
assert_equal __, long_string.lines.count
|
||||
end
|
||||
|
||||
def test_plus_will_concatenate_two_strings
|
||||
|
||||
@@ -40,7 +40,8 @@ class AboutStrings < EdgeCase::Koan
|
||||
It was the best of times,
|
||||
It was the worst of times.
|
||||
}
|
||||
assert_equal __(54), long_string.size
|
||||
assert_equal __(54), long_string.length
|
||||
assert_equal __(3), long_string.lines.count
|
||||
end
|
||||
|
||||
def test_here_documents_can_also_handle_multiple_lines
|
||||
@@ -48,7 +49,8 @@ It was the worst of times.
|
||||
It was the best of times,
|
||||
It was the worst of times.
|
||||
EOS
|
||||
assert_equal __(53), long_string.size
|
||||
assert_equal __(53), long_string.length
|
||||
assert_equal __(2), long_string.lines.count
|
||||
end
|
||||
|
||||
def test_plus_will_concatenate_two_strings
|
||||
|
||||
Reference in New Issue
Block a user