Rename DICT, TUPLE & VARIANT _clean in _reset to avoid confusing _clean & _clear functions. See #97
This commit is contained in:
1 parent
2695cd6f3e
commit
510cd062ba
7 files changed
+61
-37
No files matched your search
@@ -90,7 +90,7 @@ static void test_pair(void)
|
||||
assert(f != NULL);
|
||||
assert (*f == 42.0);
|
||||
|
||||
pair_clean(p);
|
||||
pair_reset(p);
|
||||
assert (pair_empty_p(p));
|
||||
assert (!pair_key_p(p));
|
||||
assert (!pair_value_p(p));
|
||||
@@ -126,7 +126,7 @@ static void test_pair(void)
|
||||
assert(i != NULL);
|
||||
assert (*i == 42);
|
||||
|
||||
pair_clean(p);
|
||||
pair_reset(p);
|
||||
assert (pair_empty_p(p));
|
||||
|
||||
pair_clear(p2);
|
||||
@@ -140,8 +140,8 @@ static void test_pair(void)
|
||||
f = pair_get_value(p2);
|
||||
assert(f != NULL);
|
||||
assert (*f == 435.0);
|
||||
pair_clean(p);
|
||||
pair_clean(p2);
|
||||
pair_reset(p);
|
||||
pair_reset(p2);
|
||||
pair_set(p2, p);
|
||||
assert (pair_empty_p(p2));
|
||||
|
||||
|
||||
Reference in new issue
Block a user