Skip to content

Commit a6f45d1

Browse files
mat-kiestadelmanma
authored andcommitted
add missing test case for Invalid as first variant
1 parent 1720b5b commit a6f45d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fitparser/src/de/parser.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,11 @@ mod tests {
812812
val.is_valid(),
813813
"This Value array should be valid since it contains a valid value"
814814
);
815+
let val = Value::Array(vec![Value::Invalid, Value::UInt8(42u8)]);
816+
assert!(
817+
val.is_valid(),
818+
"This Value array should be valid since it contains a valid value"
819+
);
815820
let val = Value::Array(vec![Value::UInt8(0x00), Value::UInt8(42u8)]);
816821
assert!(
817822
val.is_valid(),

0 commit comments

Comments
 (0)