testsuite: import defmt assert macros
these imports will override the ones from the core prelude
This commit is contained in:
@@ -7,13 +7,15 @@ use {{crate_name}} as _; // memory layout + panic handler
|
||||
// feature)
|
||||
#[defmt_test::tests]
|
||||
mod tests {
|
||||
use defmt::{assert, assert_eq};
|
||||
|
||||
#[test]
|
||||
fn assert_true() {
|
||||
defmt::assert!(true)
|
||||
assert!(true)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn assert_eq() {
|
||||
defmt::assert_eq!(24, 42, "TODO: write actual tests")
|
||||
assert_eq!(24, 42, "TODO: write actual tests")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user