- Timestamp:
- Jul 3, 2011, 8:08:06 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- ca54fd6
- Parents:
- 82e93c9
- git-author:
- Jason Gross <jgross@mit.edu> (06/27/11 01:53:42)
- git-committer:
- Jason Gross <jgross@mit.edu> (07/03/11 20:08:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r25891a8 rbc1d648 316 316 317 317 owl_variable_dict_newvar_string(&vd, "stringvar", "", "", "testval"); 318 FAIL_UNLESS("get new string var", NULL != (v = owl_variable_get(&vd, "stringvar" , OWL_VARIABLE_STRING)));318 FAIL_UNLESS("get new string var", NULL != (v = owl_variable_get(&vd, "stringvar"))); 319 319 FAIL_UNLESS("get new string val", !strcmp("testval", owl_variable_get_string(&vd, "stringvar"))); 320 320 owl_variable_set_string(&vd, "stringvar", "new val"); … … 322 322 323 323 owl_variable_dict_newvar_int(&vd, "intvar", "", "", 47); 324 FAIL_UNLESS("get new int var", NULL != (v = owl_variable_get(&vd, "intvar" , OWL_VARIABLE_INT)));324 FAIL_UNLESS("get new int var", NULL != (v = owl_variable_get(&vd, "intvar"))); 325 325 FAIL_UNLESS("get new int val", 47 == owl_variable_get_int(&vd, "intvar")); 326 326 owl_variable_set_int(&vd, "intvar", 17); … … 328 328 329 329 owl_variable_dict_newvar_bool(&vd, "boolvar", "", "", 1); 330 FAIL_UNLESS("get new bool var", NULL != (v = owl_variable_get(&vd, "boolvar" , OWL_VARIABLE_BOOL)));330 FAIL_UNLESS("get new bool var", NULL != (v = owl_variable_get(&vd, "boolvar"))); 331 331 FAIL_UNLESS("get new bool val", owl_variable_get_bool(&vd, "boolvar")); 332 332 owl_variable_set_bool_off(&vd, "boolvar");
Note: See TracChangeset
for help on using the changeset viewer.