some more serde tests
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
2023-12-06 15:17:03 +01:00
parent bf13a432b8
commit 3650507715
8 changed files with 106 additions and 21 deletions

View File

@@ -382,6 +382,8 @@ mod tests {
use crate::ByteConversionError;
use super::*;
#[cfg(feature = "serde")]
use crate::tests::generic_serde_test;
#[test]
fn test_enum_u8() {
@@ -492,4 +494,10 @@ mod tests {
let pfc = RealPfc::try_from(pfc_raw).unwrap();
assert_eq!(pfc, RealPfc::Double);
}
#[test]
#[cfg(feature = "serde")]
fn test_serde_pus_service_id() {
generic_serde_test(PusServiceId::Verification);
}
}