Skip to content

Commit

Permalink
unit test tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Aug 9, 2024
1 parent 05d9217 commit 7d14ea0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lazy/expanded/macro_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1438,11 +1438,13 @@ mod tests {
}

#[test]
fn flex_uint_parameter() -> IonResult<()> {
fn flex_uint_parameters() -> IonResult<()> {
let template_definition = "(macro int_pair (flex_uint::$x flex_uint::$y) (values $x $y)))";
let tests: &[(&[u8], (u64, u64))] = &[
(&[0x04, 0x09, 0x01], (4, 0)),
(&[0x04, 0x0B, 0x0D], (5, 6)), // TODO: More test cases
// invocation+args, expected arg values
(&[0x04, 0x01, 0x01], (0, 0)),
(&[0x04, 0x09, 0x03], (4, 1)),
(&[0x04, 0x0B, 0x0D], (5, 6)), // TODO: non-required cardinalities
];

for test in tests {
Expand Down

0 comments on commit 7d14ea0

Please sign in to comment.