Skip to content

Commit

Permalink
test: verifreg: remove cbor diag comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 28, 2024
1 parent 6f81f1b commit 1cdf005
Showing 1 changed file with 3 additions and 41 deletions.
44 changes: 3 additions & 41 deletions actors/verifreg/tests/verifreg_actor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1581,24 +1581,11 @@ mod serialization {
fn claim_allocations_params() {
let test_cases = vec![
(
/*
82 # array(2)
80 # array(0)
f4 # false
*/
ClaimAllocationsParams { sectors: vec![], all_or_nothing: false },
// [[],false]
"8280f4",
),
(
/*
82 # array(2)
81 # array(1)
83 # array(3)
18 65 # uint(101)
18 ca # uint(202)
80 # array(0)
f5 # true
*/
ClaimAllocationsParams {
sectors: vec![SectorAllocationClaims {
sector: 101,
Expand All @@ -1607,36 +1594,10 @@ mod serialization {
}],
all_or_nothing: true,
},
// [[[101,202,[]]],true]
"828183186518ca80f5",
),
(
/*
82 # array(2)
82 # array(2)
83 # array(3)
18 65 # uint(101)
18 ca # uint(202)
82 # array(2)
84 # array(4)
19 012f # uint(303)
19 0194 # uint(404)
d8 2a # tag(42)
49 # bytes(9)
000181e20392200100 # "\x00\x01\x81â\x03\x92 \x01\x00"
19 01f9 # uint(505)
84 # array(4)
19 025e # uint(606)
19 02c3 # uint(707)
d8 2a # tag(42)
49 # bytes(9)
000181e20392200101 # "\x00\x01\x81â\x03\x92 \x01\x01"
19 0328 # uint(808)
83 # array(3)
19 012f # uint(303)
19 0194 # uint(404)
80 # array(0)
f5 # true
*/
ClaimAllocationsParams {
sectors: vec![
SectorAllocationClaims {
Expand All @@ -1661,6 +1622,7 @@ mod serialization {
],
all_or_nothing: true,
},
// [[[101,202,[[303,404,baga6ea4seaaqa,505],[606,707,baga6ea4seaaqc,808]]],[303,404,[]]],true]
"828283186518ca828419012f190194d82a49000181e203922001001901f98419025e1902c3d82a49000181e203922001011903288319012f19019480f5",
),
];
Expand Down

0 comments on commit 1cdf005

Please sign in to comment.