Skip to content

Commit

Permalink
add missing test case for Invalid as first variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-kie authored and stadelmanma committed Jan 7, 2025
1 parent 1720b5b commit a6f45d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fitparser/src/de/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,11 @@ mod tests {
val.is_valid(),
"This Value array should be valid since it contains a valid value"
);
let val = Value::Array(vec![Value::Invalid, Value::UInt8(42u8)]);
assert!(
val.is_valid(),
"This Value array should be valid since it contains a valid value"
);
let val = Value::Array(vec![Value::UInt8(0x00), Value::UInt8(42u8)]);
assert!(
val.is_valid(),
Expand Down

0 comments on commit a6f45d1

Please sign in to comment.