22 lines
357 B
Rust
22 lines
357 B
Rust
//! Demo test suite using embedded-test
|
|
//!
|
|
//! You can run this using `cargo test` as usual.
|
|
|
|
#![no_std]
|
|
#![no_main]
|
|
|
|
#[cfg(test)]
|
|
#[embedded_test::tests]
|
|
mod tests {
|
|
use esp_hal as _;
|
|
|
|
#[init]
|
|
fn init() {
|
|
let _ = esp_hal::init(esp_hal::Config::default());
|
|
}
|
|
|
|
#[test]
|
|
fn hello_test() {
|
|
assert_eq!(1 + 1, 2);
|
|
}
|
|
}
|