From e10dd53e3ea5cdf233cd4574819c6779f0cb058b Mon Sep 17 00:00:00 2001 From: "kate.ward" Date: Fri, 4 Jan 2013 21:52:23 +0000 Subject: - 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 --- source/1.0/src/shflags_test_helpers | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/1.0/src/shflags_test_helpers') 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 -- cgit v1.2.3