@@ -63,24 +63,23 @@ def _run_commit_open_verify_roundtrip(
6363
6464
6565@pytest .mark .parametrize (
66- "num_leaves, depth, start_index, leaf_parts_len, description " ,
66+ "num_leaves, depth, start_index, leaf_parts_len" ,
6767 [
68- (16 , 4 , 0 , 3 , "Full tree (depth 4)" ),
69- (12 , 5 , 0 , 5 , "Half tree, left-aligned (depth 5)" ),
70- (16 , 5 , 16 , 2 , "Half tree, right-aligned (depth 5)" ),
71- (22 , 6 , 13 , 3 , "Sparse, non-aligned tree (depth 6)" ),
72- (2 , 2 , 2 , 6 , "Half tree, right-aligned (small)" ),
73- (1 , 1 , 0 , 1 , "Tree with a single leaf at the start" ),
74- (1 , 1 , 1 , 1 , "Tree with a single leaf at an odd index" ),
75- (16 , 5 , 7 , 2 , "Small sparse tree starting at an odd index" ),
68+ pytest . param (16 , 4 , 0 , 3 , id = "Full tree (depth 4)" ),
69+ pytest . param (12 , 5 , 0 , 5 , id = "Half tree, left-aligned (depth 5)" ),
70+ pytest . param (16 , 5 , 16 , 2 , id = "Half tree, right-aligned (depth 5)" ),
71+ pytest . param (22 , 6 , 13 , 3 , id = "Sparse, non-aligned tree (depth 6)" ),
72+ pytest . param (2 , 2 , 2 , 6 , id = "Half tree, right-aligned (small)" ),
73+ pytest . param (1 , 1 , 0 , 1 , id = "Tree with a single leaf at the start" ),
74+ pytest . param (1 , 1 , 1 , 1 , id = "Tree with a single leaf at an odd index" ),
75+ pytest . param (16 , 5 , 7 , 2 , id = "Small sparse tree starting at an odd index" ),
7676 ],
7777)
7878def test_commit_open_verify_roundtrip (
7979 num_leaves : int ,
8080 depth : int ,
8181 start_index : int ,
8282 leaf_parts_len : int ,
83- description : str ,
8483) -> None :
8584 """Tests the Merkle tree logic for various configurations."""
8685 # Ensure the test case parameters are valid for the specified tree depth.
0 commit comments