-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Milestone
Description
Context
assertEq, assertLt, ... allow to add a message string.
Scope
Add messages to all asserts as done, for example, here:
evm-protocol-adapter/contracts/test/state/CommitmentTree.t.sol
Lines 29 to 40 in 7103fac
| function test_constructor_initializes_the_tree_with_depth_0() public { | |
| assertEq(new CommitmentTree().commitmentTreeDepth(), 0, "The initial tree depth should be 0."); | |
| } | |
| function test_constructor_initializes_the_tree_with_capacity_1() public { | |
| assertEq(new CommitmentTree().commitmentTreeCapacity(), 1, "The initial tree capacity should be 1."); | |
| } | |
| function test_constructor_initializes_the_tree_with_0_leaves() public { | |
| assertEq(new CommitmentTree().commitmentCount(), 0, "The initial commitment count should be 0."); | |
| } | |
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Ready