renames for core pdu

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-07 03:30:47 +00:00
parent e507c31306
commit 79c6b51860
12 changed files with 123 additions and 89 deletions

View file

@ -1,19 +1,19 @@
#![cfg(test)]
use super::PduCount;
use super::Count;
#[test]
fn backfilled_parse() {
let count: PduCount = "-987654".parse().expect("parse() failed");
let backfilled = matches!(count, PduCount::Backfilled(_));
let count: Count = "-987654".parse().expect("parse() failed");
let backfilled = matches!(count, Count::Backfilled(_));
assert!(backfilled, "not backfilled variant");
}
#[test]
fn normal_parse() {
let count: PduCount = "987654".parse().expect("parse() failed");
let backfilled = matches!(count, PduCount::Backfilled(_));
let count: Count = "987654".parse().expect("parse() failed");
let backfilled = matches!(count, Count::Backfilled(_));
assert!(!backfilled, "backfilled variant");
}