File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed
Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ FirstName LastName City State
2+ Jim Wang LA California
3+ Musk Li Houston Texas
Original file line number Diff line number Diff line change 1+ FirstName LastName City State
2+ Jim Wang LA California
3+ Musk Li Houston Texas
Original file line number Diff line number Diff line change 99// clearString replace all white chars
1010func clearString (str string ) string {
1111 trimStr := strings .ReplaceAll (str , " " , "" )
12+ trimStr = strings .ReplaceAll (trimStr , "\t " , "" )
1213 trimStr = strings .ReplaceAll (trimStr , "\n " , "" )
1314 trimStr = strings .ReplaceAll (trimStr , "\r " , "" )
1415 return trimStr
Original file line number Diff line number Diff line change @@ -99,6 +99,14 @@ func TestDiffOutFunc(t *testing.T) {
9999 strictMode : true ,
100100 shouldSame : false ,
101101 },
102+ {
103+ desc : "(L)Compare tab and white characters" ,
104+ userOut : "userv6.out" ,
105+ dataOut : "datav6.out" ,
106+ ignoreHead : true ,
107+ strictMode : false ,
108+ shouldSame : true ,
109+ },
102110 }
103111 for idx , tc := range tests {
104112 t .Logf ("%d. %s:\n " , idx + 1 , tc .desc )
You can’t perform that action at this time.
0 commit comments