Changeset 554787e8


Ignore:
Timestamp:
Jun 27, 2011, 4:28:52 AM (13 years ago)
Author:
Jason Gross <jgross@mit.edu>
Parents:
b75a8ac
git-author:
Jason Gross <jgross@mit.edu> (06/26/11 23:20:56)
git-committer:
Jason Gross <jgross@mit.edu> (06/27/11 04:28:52)
Message:
Added tests to tester.c to make sure that NULL values are gotten appropriately
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r0d935a1 r554787e8  
    340340  FAIL_UNLESS("update bool val", !owl_variable_get_bool(var));
    341341
     342  owl_variable_dict_newvar_string(&vd, "nullstringvar", "", "", NULL);
     343  FAIL_UNLESS("get new string (NULL) var", NULL != (var = owl_variable_get_var(&vd, "nullstringvar")));
     344  FAIL_UNLESS("get string (NULL)", NULL == (value = owl_variable_get_tostring(var)));
     345  g_free(value);
     346  var = owl_variable_get_var(&vd, "zsigproc");
     347  FAIL_UNLESS("get string (NULL) 2", NULL == (value = owl_variable_get_tostring(var)));
     348  g_free(value);
     349
    342350  owl_variable_dict_cleanup(&vd);
    343351
Note: See TracChangeset for help on using the changeset viewer.