use defmt-test in the test suite
This commit is contained in:
+11
-4
@@ -4,9 +4,16 @@
|
||||
use cortex_m_rt::entry;
|
||||
use {{crate_name}} as _; // memory layout + panic handler
|
||||
|
||||
#[entry]
|
||||
fn main() -> ! {
|
||||
assert!(false, "TODO: Write actual tests");
|
||||
// See https://crates.io/crates/defmt-test/0.1.0 for more documentation
|
||||
#[defmt_test::tests]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn assert_true() {
|
||||
assert!(true)
|
||||
}
|
||||
|
||||
{{crate_name}}::exit();
|
||||
#[test]
|
||||
fn assert_false() {
|
||||
assert!(false, "TODO: write actual tests")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user