diff --git a/代码/workspace_robo4/robocode.tests/src/test/java/net/sf/robocode/test/core/util/AlphanumericComparatorTest.java b/代码/workspace_robo4/robocode.tests/src/test/java/net/sf/robocode/test/core/util/AlphanumericComparatorTest.java index 828ded7..9e22e17 100644 --- a/代码/workspace_robo4/robocode.tests/src/test/java/net/sf/robocode/test/core/util/AlphanumericComparatorTest.java +++ b/代码/workspace_robo4/robocode.tests/src/test/java/net/sf/robocode/test/core/util/AlphanumericComparatorTest.java @@ -50,10 +50,10 @@ public class AlphanumericComparatorTest { String str1 = unsortedStrings[i]; String str2 = correctlySortedStrings[i]; - if (str1!=null&&!(str1 == null && str2 == null) && !str1.equals(str2)) { + sortedCorrectly = false; break; - } + } Assert.assertTrue(sortedCorrectly); }