Skip to content

Commit 20ced9c

Browse files
committed
Merge pull request gregmalcolm#63 from shishirmk/master
Add a new test case about escaping double quotes in a triple quoted string.
2 parents 058d8ff + 92d9967 commit 20ced9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python2/koans/about_strings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ def test_triple_quoted_strings_need_less_escaping(self):
5656
b = """Hello "world"."""
5757
self.assertEqual(__, (a == b))
5858

59-
def but_quotes_at_the_end_of_a_triple_quoted_string_are_still_tricky(self):
59+
def test_escaping_quotes_at_the_end_of_triple_quoted_string(self):
6060
string = """Hello "world\""""
61+
self.assertEqual(__, string)
6162

6263
def test_plus_concatenates_strings(self):
6364
string = "Hello, " + "world"

0 commit comments

Comments
 (0)