Lines Matching full:default
41 '_flags_define() should not overwrite previously defined default.' \
51 '_flags_define() should not overwrite previously defined default.' \
66 for default in 'true' 't' 0; do
68 DEFINE_boolean boolVal "${default}" 'my boolean' b
71 "DEFINE_boolean() call with default of '${default}' failed." \
74 "DEFINE_boolean() call with default of '${default}' returned faliure." \
79 for default in 'false' 'f' 1; do
81 DEFINE_boolean boolVal "${default}" 'my boolean' b
84 "DEFINE_boolean() call with default of '${default}' failed." \
87 "DEFINE_boolean() call with default of '${default}' returned faliure." \
91 # test invalid default
94 assertFalse 'DEFINE_boolean() call with invalid default did not fail.' $?
101 for default in ${TH_FLOAT_VALID}; do
103 DEFINE_float floatVal ${default} "float: ${default}" f
105 assertSame "DEFINE_float() call with valid default failed." \
106 ${default} "${FLAGS_floatVal:-}"
108 "DEFINE_float() call with valid default of '${default}' returned faliure." \
116 assertFalse 'DEFINE_float() call with string value default did not fail.' $?
123 for default in ${TH_INT_VALID}; do
125 DEFINE_integer intVal ${default} "integer: ${default}" i
128 "DEFINE_integer() call with valid default failed." \
129 ${default} "${FLAGS_intVal:-}"
131 "DEFINE_integer() call with valid default of '${default}' returned failure." \
139 assertFalse 'DEFINE_integer() call with float value default did not fail.' $?
140 assertErrorMsg 'invalid default' 'float default'
145 'DEFINE_integer() call with negative float value default did not fail.' \
147 assertErrorMsg 'invalid default' 'negative float default'
152 'DEFINE_integer() call with string value default did not fail.' \
154 assertErrorMsg 'invalid default' 'string default'
160 for default in \
167 DEFINE_string strVal "${default}" "string: ${default}" s
170 "DEFINE_string() call with valid default failed." \
171 "${default}" "${FLAGS_strVal:-}"
173 "DEFINE_string() call with valid default of '${default}' returned faliure." \
182 "DEFINE_string() call with valid default failed." \