Changeset a1074de for tester.c


Ignore:
Timestamp:
Mar 7, 2010, 10:26:09 PM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
bf7aa1d
Parents:
0e57335
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 22:21:53)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:09)
Message:
owl_dict_insert_element: Rename free_on_replace argument to delete_on_replace.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r8c59178 ra1074de  
    113113  printf("# BEGIN testing owl_dict\n");
    114114  FAIL_UNLESS("create", 0==owl_dict_create(&d));
    115   FAIL_UNLESS("insert b", 0==owl_dict_insert_element(&d, "b", bv, owl_dict_noop_free));
    116   FAIL_UNLESS("insert d", 0==owl_dict_insert_element(&d, "d", dv, owl_dict_noop_free));
    117   FAIL_UNLESS("insert a", 0==owl_dict_insert_element(&d, "a", av, owl_dict_noop_free));
    118   FAIL_UNLESS("insert c", 0==owl_dict_insert_element(&d, "c", cv, owl_dict_noop_free));
     115  FAIL_UNLESS("insert b", 0==owl_dict_insert_element(&d, "b", bv, owl_dict_noop_delete));
     116  FAIL_UNLESS("insert d", 0==owl_dict_insert_element(&d, "d", dv, owl_dict_noop_delete));
     117  FAIL_UNLESS("insert a", 0==owl_dict_insert_element(&d, "a", av, owl_dict_noop_delete));
     118  FAIL_UNLESS("insert c", 0==owl_dict_insert_element(&d, "c", cv, owl_dict_noop_delete));
    119119  FAIL_UNLESS("reinsert d (no replace)", -2==owl_dict_insert_element(&d, "d", dv, 0));
    120120  FAIL_UNLESS("find a", av==owl_dict_find_element(&d, "a"));
Note: See TracChangeset for help on using the changeset viewer.