Changeset b4a678a


Ignore:
Timestamp:
Jul 3, 2011, 8:43:06 PM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
1dab38e
Parents:
ca749a9
git-author:
Jason Gross <jgross@mit.edu> (06/26/11 23:20:56)
git-committer:
Jason Gross <jgross@mit.edu> (07/03/11 20:43:06)
Message:
Added tests to tester.c to make sure that NULL values are gotten appropriately
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    rca54fd6 rb4a678a  
    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.