mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
move core::pdu and core::state_res into core::matrix::
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
use super::Count;
|
||||
|
||||
#[test]
|
||||
fn backfilled_parse() {
|
||||
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: Count = "987654".parse().expect("parse() failed");
|
||||
let backfilled = matches!(count, Count::Backfilled(_));
|
||||
|
||||
assert!(!backfilled, "backfilled variant");
|
||||
}
|
||||
Reference in New Issue
Block a user