Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions unit1_lessons/unit1_lesson_02_understanding_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
"""

def test_string_type():
assert __ == type("Hello World").__name__
assert __ == isinstance("Hello World", str)
assert 'str' == type("Hello World").__name__
assert True == isinstance("Hello World", str)

def test_single_quoted_strings_are_strings():
assert __ == isinstance('Hello World', str)
assert True == isinstance('Hello World', str)

def test_double_quoted_strings_are_strings():
assert __ == isinstance("Hello World", str)
assert True == isinstance("Hello World", str)

def test_triple_quoted_strings_are_strings():
assert __ == isinstance("""Hello World""", str)
assert True == isinstance("""Hello World""", str)

def test_triple_single_quoted_strings_are_strings():
assert __ == isinstance('''Hello World''', str)
assert True == isinstance('''Hello World''', str)

def test_raw_strings_are_strings():
# raw string literals are specified using the r before the first quote
Expand Down