Add more encapsulation tests.
This commit is contained in:
1 parent
357c37c69d
commit
9c19ed4471
1 file changed
+7
@@ -74,6 +74,10 @@ CONCURRENT_DEF(string_pool_ts, string_pool_t, STRING_POOL_OPLIST)
|
||||
CONCURRENT_OPLIST(string_pool_ts, STRING_POOL_OPLIST)
|
||||
#define M_OPL_string_pool_ts_t() STRING_POOL_TS_OPLIST
|
||||
|
||||
TUPLE_DEF2(my_tuple, (pool, string_pool_ts_t))
|
||||
#define MY_TUPLE_OPLIST TUPLE_OPLIST(my_tuple, STRING_POOL_TS_OPLIST)
|
||||
#define M_OPL_my_tuple_t() MY_TUPLE_OPLIST
|
||||
|
||||
/********************************/
|
||||
parray1_t arr;
|
||||
|
||||
@@ -123,6 +127,9 @@ static void test_basic(void)
|
||||
assert (b);
|
||||
assert (string_equal_str_p (str, "B"));
|
||||
}
|
||||
M_LET(tuple, my_tuple_t) {
|
||||
assert (string_pool_ts_empty_p(tuple->pool));
|
||||
}
|
||||
}
|
||||
|
||||
int main(void)
|
||||
|
||||
Reference in new issue
Block a user