@@ -7,41 +7,41 @@ class AboutStrings(Koan):
7
7
8
8
def test_double_quoted_strings_are_strings (self ):
9
9
string = "Hello, world."
10
- self .assertEqual (__ , isinstance (string , str ))
10
+ self .assertEqual (True , isinstance (string , str ))
11
11
12
12
def test_single_quoted_strings_are_also_strings (self ):
13
13
string = 'Goodbye, world.'
14
- self .assertEqual (__ , isinstance (string , str ))
14
+ self .assertEqual (True , isinstance (string , str ))
15
15
16
16
def test_triple_quote_strings_are_also_strings (self ):
17
17
string = """Howdy, world!"""
18
- self .assertEqual (__ , isinstance (string , str ))
18
+ self .assertEqual (True , isinstance (string , str ))
19
19
20
20
def test_triple_single_quotes_work_too (self ):
21
21
string = '''Bonjour tout le monde!'''
22
- self .assertEqual (__ , isinstance (string , str ))
22
+ self .assertEqual (True , isinstance (string , str ))
23
23
24
24
def test_raw_strings_are_also_strings (self ):
25
25
string = r"Konnichi wa, world!"
26
- self .assertEqual (__ , isinstance (string , str ))
26
+ self .assertEqual (True , isinstance (string , str ))
27
27
28
28
def test_use_single_quotes_to_create_string_with_double_quotes (self ):
29
29
string = 'He said, "Go Away."'
30
- self .assertEqual (__ , string )
30
+ self .assertEqual ('He said, "Go Away."' , string )
31
31
32
32
def test_use_double_quotes_to_create_strings_with_single_quotes (self ):
33
33
string = "Don't"
34
- self .assertEqual (__ , string )
34
+ self .assertEqual ("Don't" , string )
35
35
36
36
def test_use_backslash_for_escaping_quotes_in_strings (self ):
37
37
a = "He said, \" Don't\" "
38
38
b = 'He said, "Don\' t"'
39
- self .assertEqual (__ , (a == b ))
39
+ self .assertEqual (True , (a == b ))
40
40
41
41
def test_use_backslash_at_the_end_of_a_line_to_continue_onto_the_next_line (self ):
42
42
string = "It was the best of times,\n \
43
43
It was the worst of times."
44
- self .assertEqual (__ , len (string ))
44
+ self .assertEqual (52 , len (string ))
45
45
46
46
def test_triple_quoted_strings_can_span_lines (self ):
47
47
string = """
0 commit comments