- Timestamp:
- Feb 19, 2013, 8:29:04 PM (12 years ago)
- Branches:
- master, release-1.10
- Children:
- 5001a3d
- Parents:
- 06e04a9
- git-author:
- David Benjamin <davidben@mit.edu> (06/09/12 16:07:20)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/19/13 20:29:04)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r6a20996 r353719a 337 337 int numfailed=0; 338 338 char *value; 339 const void *v;340 339 341 340 printf("# BEGIN testing owl_variable\n"); … … 379 378 owl_variable_dict_newvar_string(&vd, "stringvar", "", "", "testval"); 380 379 FAIL_UNLESS("get new string var", NULL != (var = owl_variable_get_var(&vd, "stringvar"))); 381 FAIL_UNLESS("get new string var", NULL != (v = owl_variable_get(var)));382 380 FAIL_UNLESS("get new string val", !strcmp("testval", owl_variable_get_string(var))); 383 381 owl_variable_set_string(var, "new val"); … … 386 384 owl_variable_dict_newvar_int(&vd, "intvar", "", "", 47); 387 385 FAIL_UNLESS("get new int var", NULL != (var = owl_variable_get_var(&vd, "intvar"))); 388 FAIL_UNLESS("get new int var", NULL != (v = owl_variable_get(var)));389 386 FAIL_UNLESS("get new int val", 47 == owl_variable_get_int(var)); 390 387 owl_variable_set_int(var, 17); … … 393 390 owl_variable_dict_newvar_bool(&vd, "boolvar", "", "", 1); 394 391 FAIL_UNLESS("get new bool var", NULL != (var = owl_variable_get_var(&vd, "boolvar"))); 395 FAIL_UNLESS("get new bool var", NULL != (v = owl_variable_get(var)));396 392 FAIL_UNLESS("get new bool val", owl_variable_get_bool(var)); 397 393 owl_variable_set_bool_off(var);
Note: See TracChangeset
for help on using the changeset viewer.