From: Steven Baltakatei Sandoval Date: Tue, 2 Nov 2021 22:46:06 +0000 (+0000) Subject: feat(u/bktemp-checkFlt):Add empty string test X-Git-Tag: 0.5.0~31 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/b2cb5f6a32afb8631641bba98b6fa6ad38e16f59?ds=sidebyside;hp=--cc feat(u/bktemp-checkFlt):Add empty string test --- b2cb5f6a32afb8631641bba98b6fa6ad38e16f59 diff --git a/unitproc/bktemp-checkFlt b/unitproc/bktemp-checkFlt index affc94f..0a0d6e4 100644 --- a/unitproc/bktemp-checkFlt +++ b/unitproc/bktemp-checkFlt @@ -74,6 +74,9 @@ myVar1="foo"; echo "Test 10:Should fail because floats should only contain numbe myVar1="foo"; myVar2="bar"; myVar3="baz"; echo "Test 11: Should fail because multiple arguments provided."; (if checkFlt "$myVar1" "$myVar2" "$myVar3"; then yell "success"; else yell "fail"; fi;) & sleep 1; + +myVar1=""; echo "Test 12: Should fil because empty string."; +(if checkFlt "$myVar1"; then yell "success"; else yell "fail"; fi;) & sleep 1; #==END test code== # Author: Steven Baltakatei Sandoval