Add more tests.
This commit is contained in:
1 parent
08112a3a6d
commit
70980046ed
1 file changed
+4
-1
@@ -31,15 +31,18 @@ int main(void)
|
||||
|
||||
shared_int_clean(p1);
|
||||
assert(shared_int_NULL_p(p1));
|
||||
assert(!shared_int_NULL_p(p2));
|
||||
assert(f(p2) == 12);
|
||||
|
||||
shared_int_set(p1, p2);
|
||||
|
||||
shared_int_clean(p2);
|
||||
assert(!shared_int_NULL_p(p1));
|
||||
assert(shared_int_NULL_p(p2));
|
||||
|
||||
assert(f(p1) == 12);
|
||||
shared_int_set(p2, p1);
|
||||
assert(!shared_int_NULL_p(p1));
|
||||
assert(!shared_int_NULL_p(p2));
|
||||
assert(f(p2) == 12);
|
||||
|
||||
shared_int_clean(p2);
|
||||
|
||||
Reference in new issue
Block a user