From f639d9d3e1ee642217a964f7588cc80fd80da89e Mon Sep 17 00:00:00 2001 From: zhoudaxia <1018795633@qq.cin> Date: Fri, 26 Aug 2016 21:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=98=BB=E6=96=AD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sf/robocode/test/core/util/AlphanumericComparatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }