@@ -1071,8 +1071,10 @@ def test_should_replace_multiple_single_quotes_with_single_ones(self):
1071
1071
self .assertEqual ('Dave\' s job' , prettify ("Dave''s job" ))
1072
1072
self .assertEqual ("'destiny'" , prettify ("'''destiny'''" ))
1073
1073
1074
- def should_fix_saxon_genitive_spaces (self ):
1075
- self .assertEqual ('Dave\' s dog' , prettify ('Dave\' s dog' ))
1074
+ def test_should_fix_saxon_genitive_spaces (self ):
1075
+ self .assertEqual ("Dave's dog" , prettify ("Dave' s dog" ))
1076
+ self .assertEqual ("Dave's dog" , prettify ("Dave 's dog" ))
1077
+ self .assertEqual ("Dave's dog" , prettify ("Dave 'sdog" ))
1076
1078
1077
1079
def test_should_replace_multiple_percentage_with_single_ones (self ):
1078
1080
self .assertEqual ('%' , prettify ('%%%' ))
@@ -1156,12 +1158,12 @@ def test_should_add_spaces_around_equal_if_missing(self):
1156
1158
def test_should_add_spaces_around_division_if_missing (self ):
1157
1159
self .assertEqual ('5 / 2 = 2.5' , prettify ('5/ 2 = 2.5' ))
1158
1160
self .assertEqual ('5 / 2 = 2.5' , prettify ('5 /2 = 2.5' ))
1159
- self .assertEqual ('5 / 2 = 2.5' , prettify ('5 / 2 = 2.5' ))
1161
+ self .assertEqual ('5 / 2 = 2.5' , prettify ('5/ 2 = 2.5' ))
1160
1162
1161
1163
def test_should_add_spaces_around_multiplication_if_missing (self ):
1162
1164
self .assertEqual ('5 * 2 = 10' , prettify ('5* 2 = 10' ))
1163
1165
self .assertEqual ('5 * 2 = 10' , prettify ('5 *2 = 10' ))
1164
- self .assertEqual ('5 * 2 = 10' , prettify ('5 * 2 = 10' ))
1166
+ self .assertEqual ('5 * 2 = 10' , prettify ('5* 2 = 10' ))
1165
1167
1166
1168
def test_should_prettify_string_as_expected (self ):
1167
1169
original = ' unprettified string ,, like this one,will be"prettified" .it\' s awesome!( like python)) '
@@ -1172,7 +1174,9 @@ def test_should_work_as_expected_for_multiple_lines_string(self):
1172
1174
original = '''
1173
1175
1174
1176
unprettified string ,,
1177
+
1175
1178
like this one,will be"prettified"
1179
+
1176
1180
.it' s awesome!( like python))
1177
1181
1178
1182
'''
0 commit comments