#59 #72
authoradam <adamansky@gmail.com>
Wed, 17 Jul 2013 17:20:28 +0000 (00:20 +0700)
committeradam <adamansky@gmail.com>
Wed, 17 Jul 2013 17:20:28 +0000 (00:20 +0700)
tcejdb/testejdb/t2.c

index e6c3e3f..de4a371 100644 (file)
@@ -4234,10 +4234,10 @@ void testMetaInfo() {
     CU_ASSERT_PTR_NOT_NULL_FATAL(meta);
     const char *metabsdata = bson_data(meta);
     CU_ASSERT_FALSE(bson_compare_string("dbt2", metabsdata, "file"));
-    CU_ASSERT_FALSE(bson_compare_string("contacts", metabsdata, "collections.0.name"));
-    CU_ASSERT_FALSE(bson_compare_string("dbt2_contacts", metabsdata, "collections.0.file"));
-    CU_ASSERT_FALSE(bson_compare_long(131071, metabsdata, "collections.0.options.buckets"));
-    CU_ASSERT_FALSE(bson_compare_long(8, metabsdata, "collections.0.records"));
+    CU_ASSERT_FALSE(bson_compare_string("contacts", metabsdata, "collections.1.name"));
+    CU_ASSERT_FALSE(bson_compare_string("dbt2_contacts", metabsdata, "collections.1.file"));
+    CU_ASSERT_FALSE(bson_compare_long(131071, metabsdata, "collections.1.options.buckets"));
+    CU_ASSERT_FALSE(bson_compare_long(8, metabsdata, "collections.1.records"));
     bson_del(meta);
 }