chore: reset working tree (v0.5)
Temporary commit clearing working tree for v0.6 rebuild
This commit is contained in:
22
tests/pid.rs
22
tests/pid.rs
@@ -1,22 +0,0 @@
|
||||
use smarm::pid::Pid;
|
||||
|
||||
#[test]
|
||||
fn pid_equality() {
|
||||
assert_eq!(Pid::new(0, 0), Pid::new(0, 0));
|
||||
assert_ne!(Pid::new(0, 0), Pid::new(0, 1));
|
||||
assert_ne!(Pid::new(0, 0), Pid::new(1, 0));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pid_accessors() {
|
||||
let p = Pid::new(42, 7);
|
||||
assert_eq!(p.index(), 42);
|
||||
assert_eq!(p.generation(), 7);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pid_debug_is_useful() {
|
||||
let p = Pid::new(3, 5);
|
||||
let s = format!("{:?}", p);
|
||||
assert!(s.contains('3') && s.contains('5'), "got: {}", s);
|
||||
}
|
||||
Reference in New Issue
Block a user