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
parent
b967c60ccd
commit
762788efa3
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue