- Timestamp:
- Feb 21, 2013, 4:42:20 PM (12 years ago)
- Branches:
- master, release-1.10
- Children:
- f41956d
- Parents:
- 4584d1f
- git-author:
- David Benjamin <davidben@mit.edu> (06/10/12 15:06:27)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/21/13 16:42:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r353719a r1a4508b 376 376 FAIL_UNLESS("get int 7", 9 == owl_variable_get_int(var)); 377 377 378 owl_variable_dict_newvar_string(&vd, "stringvar", " ", "", "testval");378 owl_variable_dict_newvar_string(&vd, "stringvar", "testval", "", ""); 379 379 FAIL_UNLESS("get new string var", NULL != (var = owl_variable_get_var(&vd, "stringvar"))); 380 380 FAIL_UNLESS("get new string val", !strcmp("testval", owl_variable_get_string(var))); … … 382 382 FAIL_UNLESS("update string val", !strcmp("new val", owl_variable_get_string(var))); 383 383 384 owl_variable_dict_newvar_int(&vd, "intvar", "", "", 47);384 owl_variable_dict_newvar_int(&vd, "intvar", 47, "", ""); 385 385 FAIL_UNLESS("get new int var", NULL != (var = owl_variable_get_var(&vd, "intvar"))); 386 386 FAIL_UNLESS("get new int val", 47 == owl_variable_get_int(var)); … … 388 388 FAIL_UNLESS("update int val", 17 == owl_variable_get_int(var)); 389 389 390 owl_variable_dict_newvar_bool(&vd, "boolvar", "", "", 1);390 owl_variable_dict_newvar_bool(&vd, "boolvar", true, "", ""); 391 391 FAIL_UNLESS("get new bool var", NULL != (var = owl_variable_get_var(&vd, "boolvar"))); 392 392 FAIL_UNLESS("get new bool val", owl_variable_get_bool(var)); … … 394 394 FAIL_UNLESS("update bool val", !owl_variable_get_bool(var)); 395 395 396 owl_variable_dict_newvar_string(&vd, "nullstringvar", "", "", NULL);396 owl_variable_dict_newvar_string(&vd, "nullstringvar", NULL, "", ""); 397 397 FAIL_UNLESS("get new string (NULL) var", NULL != (var = owl_variable_get_var(&vd, "nullstringvar"))); 398 398 FAIL_UNLESS("get string (NULL)", NULL == (value = owl_variable_get_tostring(var)));
Note: See TracChangeset
for help on using the changeset viewer.