This commit is contained in:
parent
cc680dba46
commit
96d389a651
@ -38,7 +38,7 @@ impl TryFrom<u8> for CcsdsTimeCodes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
|
||||||
pub enum TimestampError {
|
pub enum TimestampError {
|
||||||
/// Contains tuple where first value is the expected time code and the second
|
/// Contains tuple where first value is the expected time code and the second
|
||||||
/// value is the found raw value
|
/// value is the found raw value
|
||||||
@ -336,7 +336,7 @@ mod tests {
|
|||||||
let res = time_stamper.write_to_bytes(&mut buf[0..i]);
|
let res = time_stamper.write_to_bytes(&mut buf[0..i]);
|
||||||
assert!(res.is_err());
|
assert!(res.is_err());
|
||||||
match res.unwrap_err() {
|
match res.unwrap_err() {
|
||||||
ToBytesSliceTooSmall(missmatch) => {
|
OtherPacketError(ToBytesSliceTooSmall(missmatch)) => {
|
||||||
assert_eq!(missmatch.found, i);
|
assert_eq!(missmatch.found, i);
|
||||||
assert_eq!(missmatch.expected, 7);
|
assert_eq!(missmatch.expected, 7);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user