Fixing the test for merging two sets in the DSF

I am not super sure with the code, but I think the intention behind the test is to check pair1 with pair2 after it has been merged. Hence changing it.
release/4.3a0
Ayush Baid 2019-12-29 15:30:38 -05:00 committed by GitHub
parent b967c60ccd
commit 762788efa3
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__':