Skip to content

Commit 2d901d6

Browse files
author
Jonas Schievink
authored
Actually use the defmt assertion macros
1 parent 8f9e7e6 commit 2d901d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

testsuite/tests/test.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22
#![no_main]
33

44
use {{crate_name}} as _; // memory layout + panic handler
5-
use defmt::{assert, assert_eq};
65

76
// See https://crates.io/crates/defmt-test/0.1.0 for more documentation (e.g. about the 'state'
87
// feature)
98
#[defmt_test::tests]
109
mod tests {
1110
#[test]
1211
fn assert_true() {
13-
assert!(true)
12+
defmt::assert!(true)
1413
}
1514

1615
#[test]
1716
fn assert_eq() {
18-
assert_eq!(24, 42, "TODO: write actual tests")
17+
defmt::assert_eq!(24, 42, "TODO: write actual tests")
1918
}
2019
}

0 commit comments

Comments
 (0)