renames for core pdu
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e507c31306
commit
79c6b51860
12 changed files with 123 additions and 89 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue