Change the value used to generate the enumerate of a variant:
the previous values didn't prevent to have a name collision with other methods defined for the variant.
This commit is contained in:
1 parent
8f85c71654
commit
af5742ce2d
2 files changed
+24
-24
No files matched your search
@@ -190,15 +190,15 @@ test_triple(void)
|
||||
assert( triple_type(t) == triple_EMPTY);
|
||||
|
||||
triple_set_s(t, s);
|
||||
assert( triple_type(t) == triple_s);
|
||||
assert( triple_type(t) == triple_s_value);
|
||||
triple_set_s(t, s);
|
||||
assert( triple_type(t) == triple_s);
|
||||
assert( triple_type(t) == triple_s_value);
|
||||
assert( string_equal_p (s, *triple_get_s(t)));
|
||||
|
||||
triple_set_z(t, z);
|
||||
assert( triple_type(t) == triple_z);
|
||||
assert( triple_type(t) == triple_z_value);
|
||||
triple_set_z(t, z);
|
||||
assert( triple_type(t) == triple_z);
|
||||
assert( triple_type(t) == triple_z_value);
|
||||
assert( testobj_cmp (z, *triple_get_z(t)) == 0);
|
||||
|
||||
testobj_clear(z);
|
||||
|
||||
Reference in new issue
Block a user