Merge pull request #202 from ayushbaid/patch-1

Fixing the test for merging two sets in the DSF
release/4.3a0
Frank Dellaert 2020-01-11 11:57:10 -08:00 committed by GitHub
commit 4169442a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -30,8 +30,10 @@ class TestDSFMap(GtsamTestCase):
pair1 = gtsam.IndexPair(1, 18)
self.assertEqual(key(dsf.find(pair1)), key(pair1))
pair2 = gtsam.IndexPair(2, 2)
# testing the merge feature of dsf
dsf.merge(pair1, pair2)
self.assertTrue(dsf.find(pair1), dsf.find(pair1))
self.assertEquals(key(dsf.find(pair1)), key(dsf.find(pair2)))
if __name__ == '__main__':