use defmt::assert; add defmt::panic_handler
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#![no_main]
|
||||
|
||||
use {{crate_name}} as _; // memory layout + panic handler
|
||||
use defmt::{assert, assert_eq};
|
||||
|
||||
// See https://crates.io/crates/defmt-test/0.1.0 for more documentation (e.g. about the 'state'
|
||||
// feature)
|
||||
@@ -13,7 +14,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn assert_false() {
|
||||
assert!(false, "TODO: write actual tests")
|
||||
fn assert_eq() {
|
||||
assert_eq!(24, 42, "TODO: write actual tests")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user