Skip to content

Commit

Permalink
Update tests to cover macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Aug 28, 2024
1 parent bdd341e commit 8ec6041
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions hil-test/tests/i2s_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ async fn writer(tx_buffer: &'static mut [u8], i2s_tx: I2sTx<'static, I2S0, DmaCh
#[cfg(test)]
#[embedded_test::tests(executor = esp_hal_embassy::Executor::new())]
mod tests {
// defmt::* is load-bearing, it ensures that the assert in dma_buffers! is not
// using defmt's non-const assert. Doing so would result in a compile error.
#[allow(unused_imports)]
use defmt::{assert_eq, *};

use super::*;

#[init]
Expand Down
5 changes: 4 additions & 1 deletion hil-test/tests/spi_half_duplex_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ struct Context {
#[cfg(test)]
#[embedded_test::tests]
mod tests {
use defmt::assert_eq;
// defmt::* is load-bearing, it ensures that the assert in dma_buffers! is not
// using defmt's non-const assert. Doing so would result in a compile error.
#[allow(unused_imports)]
use defmt::{assert_eq, *};

use super::*;

Expand Down

0 comments on commit 8ec6041

Please sign in to comment.