From b2cb5f6a32afb8631641bba98b6fa6ad38e16f59 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 2 Nov 2021 22:46:06 +0000 Subject: [PATCH 1/1] feat(u/bktemp-checkFlt):Add empty string test --- unitproc/bktemp-checkFlt | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2