From c943a4c7ac544ddcaaf892f68cf81531d583bc62 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Mon, 30 Apr 2012 10:56:48 +0530 Subject: [PATCH] fix issue #161 from original fork --- tests/src/com/adobe/utils/StringUtilTest.as | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/src/com/adobe/utils/StringUtilTest.as b/tests/src/com/adobe/utils/StringUtilTest.as index 3ce1f7e..1c5d257 100644 --- a/tests/src/com/adobe/utils/StringUtilTest.as +++ b/tests/src/com/adobe/utils/StringUtilTest.as @@ -300,5 +300,11 @@ package com.adobe.utils assertTrue("StringUtil.ltrim(\" XX\") == \"XX\"", StringUtil.ltrim(" XX") == "XX"); } + + public function testStringHasValue():void { + assertFalse("StringUtil.stringHasValue(null) == false", StringUtil.stringHasValue(null)); + assertFalse("StringUtil.stringHasValue(\"\") == false", StringUtil.stringHasValue("")); + assertTrue("StringUtil.stringHasValue(\"XXX\") == true", StringUtil.stringHasValue("XXX")); + } } -} \ No newline at end of file +}