Changeset bc1d648 for tester.c


Ignore:
Timestamp:
Jul 3, 2011, 8:08:06 PM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, 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)
Message:
Drop require_type

It's not doing much for us (and would do even less after the next
commit).

I'm not sure whether or not we should type-check owl_variable_get_*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r25891a8 rbc1d648  
    316316
    317317  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")));
    319319  FAIL_UNLESS("get new string val", !strcmp("testval", owl_variable_get_string(&vd, "stringvar")));
    320320  owl_variable_set_string(&vd, "stringvar", "new val");
     
    322322
    323323  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")));
    325325  FAIL_UNLESS("get new int val", 47 == owl_variable_get_int(&vd, "intvar"));
    326326  owl_variable_set_int(&vd, "intvar", 17);
     
    328328
    329329  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")));
    331331  FAIL_UNLESS("get new bool val", owl_variable_get_bool(&vd, "boolvar"));
    332332  owl_variable_set_bool_off(&vd, "boolvar");
Note: See TracChangeset for help on using the changeset viewer.