Skip to content

Commit

Permalink
Coverage for dynamic arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Jan 3, 2025
1 parent 2f50383 commit a909b2d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/standardized/001_basic_values.fcp
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ struct S10 {
struct S11 {
s1 @ 0: [u8],
}

struct S12 {
s1 @ 0: [E],
}
16 changes: 16 additions & 0 deletions tests/standardized/fcp_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,22 @@
"S11:s1": ["0x0","0x1","0x2","0x3"]
},
"encoded": [4, 0, 0, 0, 0, 1, 2, 3]
},
{
"name": "dynamic_array_enum",
"datatype": "S12",
"decoded": {
"S12:s1": ["S0","S1","S2"]
},
"encoded": [3, 0, 0, 0, 36]
},
{
"name": "dynamic_array_enum2",
"datatype": "S12",
"decoded": {
"S12:s1": ["S0","S1","S2", "S0", "S1", "S2"]
},
"encoded": [6, 0, 0, 0, 36, 9]
}
]
}
Expand Down

0 comments on commit a909b2d

Please sign in to comment.