Esempio n. 1
0
static void
test_bool (void)
{
   bool b;

   bson_t *bcon = BCON_NEW ("foo", BCON_BOOL (true));

   assert (BCON_EXTRACT (bcon, "foo", BCONE_BOOL (b)));

   assert (b == true);

   bson_destroy (bcon);
}
Esempio n. 2
0
static void
test_bool (void)
{
   bson_bool_t b;

   bson_t *bcon = BCON_NEW ("foo", BCON_BOOL (TRUE));

   assert (BCON_EXTRACT (bcon, "foo", BCONE_BOOL (b)));

   assert (b == TRUE);

   bson_destroy (bcon);
}