You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestNamespacedMerkleTree_calculateAbsenceIndex_Panic obviously isn’t complete. It does not push the data from test cases to the nmt. It passes (the tested function panics as expected) because it tests an empty tree so this panic will be called in both cases. So this test does not test the given cases. Push function should be called for the given data.
One test case should added that tests the panic if the tree is empty, as it is done unintentionally in this test.
The text was updated successfully, but these errors were encountered:
TestNamespacedMerkleTree_calculateAbsenceIndex_Panic obviously isn’t complete. It does not push the data from test cases to the nmt. It passes (the tested function panics as expected) because it tests an empty tree so this panic will be called in both cases. So this test does not test the given cases. Push function should be called for the given data.
One test case should added that tests the panic if the tree is empty, as it is done unintentionally in this test.
The text was updated successfully, but these errors were encountered: