testsuite: import defmt assert macros
these imports will override the ones from the core prelude
This commit is contained in:
@@ -16,7 +16,7 @@ cortex-m = "0.6.3"
|
||||
cortex-m-rt = "0.6.12"
|
||||
defmt = "0.1.0"
|
||||
defmt-rtt = "0.1.0"
|
||||
defmt-test = "0.1.0"
|
||||
defmt-test = "0.1.1"
|
||||
panic-probe = { version = "0.1.0", features = ["print-defmt" ] }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -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