tests: fix broken tests

Fixes:  c82a94b
Signed-off-by: Levente Kurusa <lkurusa@acm.org>
This commit is contained in:
Levente Kurusa
2018-09-04 10:03:56 +02:00
parent ede7201b73
commit 19e2847e15
3 changed files with 22 additions and 7 deletions
+3 -1
View File
@@ -20,7 +20,9 @@ fn pid_resources() {
/* verify */
let pidcontroller: &PidController = cg.controller_of().unwrap();
assert_eq!(pidcontroller.get_pid_max(), Some(PidMax::Value(512)));
let pid_max = pidcontroller.get_pid_max();
assert_eq!(pid_max.is_ok(), true);
assert_eq!(pid_max.unwrap(), PidMax::Value(512));
}
cg.delete();
}