From 644de24864e5f4b55bf51c1ae10b88f307e5e840 Mon Sep 17 00:00:00 2001 From: Bon-Yong Lee Date: Mon, 21 Oct 2013 12:03:32 +0900 Subject: [PATCH] [Title] Fix test case [Desc.] [Issue] --- .../test/src/org/tizen/common/util/ValidationUtilTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.common/test/src/org/tizen/common/util/ValidationUtilTest.java b/org.tizen.common/test/src/org/tizen/common/util/ValidationUtilTest.java index 2609e16..8b544e8 100755 --- a/org.tizen.common/test/src/org/tizen/common/util/ValidationUtilTest.java +++ b/org.tizen.common/test/src/org/tizen/common/util/ValidationUtilTest.java @@ -183,12 +183,12 @@ public class ValidationUtilTest { */ @Test public void test_checkForVersion() throws Exception { - final String[] validedVersions = { "1.0.1", "1.0.111", "1.10.111", "35.35.123", "0.0.1", "0.1" }; + final String[] validedVersions = { "1.0.1", "1.0.111", "1.10.111", "35.35.123", "0.0.1", "0.1", "1.0", "0.0.0" }; for ( String version : validedVersions ) { assertTrue( "Failed for \"" + version + "\"", ValidationUtil.checkForVersion( version ) ); } - final String[] invalidedVersions = { "", "0.0.0", "111.111.111111", "1", "1.0.", "0" }; + final String[] invalidedVersions = { "", "111.111.111111", "1", "1.0.", "0" }; for ( String version : invalidedVersions ) { assertFalse( "Failed for \"" + version + "\"", ValidationUtil.checkForVersion( version ) ); } -- 2.7.4