aboutsummaryrefslogtreecommitdiff
path: root/source/1.0/src/shflags_test_helpers
diff options
context:
space:
mode:
authorkate.ward <kate.ward@forestent.com>2013-01-04 21:52:23 +0000
committerkate.ward <kate.ward@forestent.com>2013-01-04 21:52:23 +0000
commite10dd53e3ea5cdf233cd4574819c6779f0cb058b (patch)
treec487b9c19db7c21b7755d7d06c640bec003c5e0c /source/1.0/src/shflags_test_helpers
parentcba92e5257f037285d46d6a5ea495800eed247fc (diff)
downloadshflags-e10dd53e3ea5cdf233cd4574819c6779f0cb058b.tar.gz
- fixed ksh and zsh version detection
- added alternate validFloat and validInt functions that use built-ins instead of expr - fixed some minor issues with FreeBSD 9.1 - fixed unit tests for Solaris 8 and 9
Diffstat (limited to 'source/1.0/src/shflags_test_helpers')
-rw-r--r--source/1.0/src/shflags_test_helpers8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/1.0/src/shflags_test_helpers b/source/1.0/src/shflags_test_helpers
index bbdd5a8..e78beac 100644
--- a/source/1.0/src/shflags_test_helpers
+++ b/source/1.0/src/shflags_test_helpers
@@ -26,11 +26,11 @@ TH_SHFLAGS=${SHFLAGS_INC:-./shflags}
TH_SHUNIT=${SHUNIT_INC:-../lib/shunit2}
TH_BOOL_VALID='true t 0 false f 1'
-TH_BOOL_INVALID='123 123.0 blah'
-TH_FLOAT_VALID='-1234.0 -1234 -1.0 -1 0.0 0 1.0 1 1234.0 1234'
-TH_FLOAT_INVALID='true false invalid 1.2.3 -1.2.3 0. -.5'
+TH_BOOL_INVALID='123 123.0 invalid'
+TH_FLOAT_VALID='-1234.0 -1.0 -.123 0.0 0. .123 1.0 1234.0'
+TH_FLOAT_INVALID='true false 1.2.3 -1.2.3'
TH_INT_VALID='-1234 -1 0 1 1234'
-TH_INT_INVALID='-1.0 0.0 1.0 invalid'
+TH_INT_INVALID='true false -1.0 -.123 0.0 .123 1.0'
#
# test helper functions