use defmt-test in the test suite

This commit is contained in:
Jorge Aparicio
2020-11-13 15:42:07 +01:00
parent c99696db98
commit e5cf89b4eb
3 changed files with 13 additions and 4 deletions
+11 -4
View File
@@ -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")
}
}