Check fragment_info.version based on libtiledb version
@@ -77,9 +77,14 @@ class FragmentInfoTest(DiskTestCase):
self.assertEqual(fragment_info.timestamp_range(), ((1, 1), (2, 2), (3, 3)))
self.assertEqual(fragment_info.dense(), (True, True, True))
self.assertEqual(fragment_info.sparse(), (False, False, False))
+ if tiledb.libtiledb.version() < (2,2,3):
+ self.assertEqual(fragment_info.version(), (7,7,7))
+ else:
self.assertEqual(fragment_info.version(), (8,8,8))
+
+
def test_sparse_fragments(self):
fragments = 3
@@ -140,6 +145,9 @@ class FragmentInfoTest(DiskTestCase):
self.assertEqual(fragment_info.timestamp_range(), ((1, 1), (2, 2), (3, 3)))
self.assertEqual(fragment_info.dense(), (False, False, False))
self.assertEqual(fragment_info.sparse(), (True, True, True))
+ if tiledb.libtiledb.version() < (2,2,3):
+ self.assertEqual(fragment_info.version(), (7,7,7))
+ else:
self.assertEqual(fragment_info.version(), (8,8,8))
def test_non_empty_domain(self):
