@@ -16,7 +16,7 @@ public void Basic()
1616 {
1717 Assert . That ( FindCommonSuffix ( "01]" , "02]" ) , Is . EqualTo ( "]" ) ) ;
1818 Assert . That ( FindCommonSuffix ( "01]end" , "02]end" ) , Is . EqualTo ( "]" ) ) ;
19- Assert . That ( FindCommonSuffix ( " 01 ] end" , " 02 ] end" ) , Is . EqualTo ( "] " ) ) ;
19+ Assert . That ( FindCommonSuffix ( " 01 ] end" , " 02 ] end" ) , Is . EqualTo ( " " ) ) ;
2020 }
2121
2222 [ Test ]
@@ -30,15 +30,15 @@ public void SkipMatchCharacter()
3030 Assert . That ( FindCommonSuffix ( "01a" , "02a" ) , Is . EqualTo ( "" ) , "should skip Lowercase Letter, then no match" ) ;
3131 Assert . That ( FindCommonSuffix ( "01a]" , "02a]" ) , Is . EqualTo ( "]" ) , "should skip Lowercase Letter, then match" ) ;
3232
33- Assert . That ( FindCommonSuffix ( "01 " , "02 " ) , Is . EqualTo ( "" ) , "should skip Whitespace, then no match" ) ;
34- Assert . That ( FindCommonSuffix ( "01 ]" , "02 ]" ) , Is . EqualTo ( "] " ) , "should skip Whitespace, then match" ) ;
33+ Assert . That ( FindCommonSuffix ( "01 " , "02 " ) , Is . EqualTo ( " " ) , "should not skip Whitespace, then match" ) ;
34+ Assert . That ( FindCommonSuffix ( "01 ]" , "02 ]" ) , Is . EqualTo ( " " ) , "should not skip Whitespace, then match" ) ;
3535 }
3636
3737 [ Test ]
3838 public void NoCommon ( )
3939 {
4040 Assert . That ( FindCommonSuffix ( "01$" , "02]" ) , Is . EqualTo ( "" ) ) ;
41- Assert . That ( FindCommonSuffix ( "01 abc " , "02 def " ) , Is . EqualTo ( "" ) ) ;
41+ Assert . That ( FindCommonSuffix ( "01abc " , "02def " ) , Is . EqualTo ( "" ) ) ;
4242 }
4343
4444 [ Test ]
@@ -65,9 +65,9 @@ public void MatchChineseCharacter()
6565 {
6666 // @see https://github.com/qwqcode/SubRenamer/pull/45
6767 Assert . That ( FindCommonSuffix ( "01話" , "02話" ) , Is . EqualTo ( "話" ) ) ;
68- Assert . That ( FindCommonSuffix ( "01B 集" , "02B 集" ) , Is . EqualTo ( "集 " ) ) ;
68+ Assert . That ( FindCommonSuffix ( "01B 集" , "02B 集" ) , Is . EqualTo ( " " ) ) ;
6969
70- var result = FindCommonSuffix ( "01B 話 番外篇" , "02B 話 番外篇" ) ;
70+ var result = FindCommonSuffix ( "01B話 番外篇" , "02B話 番外篇" ) ;
7171 Assert . That ( result . Length , Is . EqualTo ( 1 ) , "should match only single character" ) ;
7272 Assert . That ( result , Is . EqualTo ( "話" ) ) ;
7373 }
0 commit comments