修改阻断问题

This commit is contained in:
zhoudaxia 2016-08-26 21:20:00 +08:00
parent 8c9f513b35
commit f639d9d3e1
1 changed files with 2 additions and 2 deletions

View File

@ -50,10 +50,10 @@ public class AlphanumericComparatorTest {
String str1 = unsortedStrings[i]; String str1 = unsortedStrings[i];
String str2 = correctlySortedStrings[i]; String str2 = correctlySortedStrings[i];
if (str1!=null&&!(str1 == null && str2 == null) && !str1.equals(str2)) {
sortedCorrectly = false; sortedCorrectly = false;
break; break;
}
} }
Assert.assertTrue(sortedCorrectly); Assert.assertTrue(sortedCorrectly);
} }