##// END OF EJS Templates
Fix fuzzy compare logic
Jonathan Frederic -
Show More
@@ -45,6 +45,10 b' class TestsBase(object):'
45 parameters of this method.
45 parameters of this method.
46 """
46 """
47
47
48 if ignore_newlines:
49 a = a.replace('\n', '')
50 b = b.replace('\n', '')
51
48 if newlines_are_spaces:
52 if newlines_are_spaces:
49 a = a.replace('\n', ' ')
53 a = a.replace('\n', ' ')
50 b = b.replace('\n', ' ')
54 b = b.replace('\n', ' ')
@@ -61,10 +65,6 b' class TestsBase(object):'
61 a = self.recursive_replace(a, ' ', ' ')
65 a = self.recursive_replace(a, ' ', ' ')
62 b = self.recursive_replace(b, ' ', ' ')
66 b = self.recursive_replace(b, ' ', ' ')
63
67
64 if ignore_newlines:
65 a = a.replace('\n', '')
66 b = b.replace('\n', '')
67
68 if not case_sensitive:
68 if not case_sensitive:
69 a = a.lower()
69 a = a.lower()
70 b = b.lower()
70 b = b.lower()
General Comments 0
You need to be logged in to leave comments. Login now