ds323x-rs/tests/ds3231.rs

13 lines
256 B
Rust
Raw Permalink Normal View History

2018-10-28 11:07:55 +00:00
#[deny(warnings)]
2018-10-28 10:52:07 +00:00
extern crate embedded_hal_mock as hal;
extern crate ds323x;
use ds323x::Ds323x;
#[test]
fn can_create_and_destroy() {
let dev = Ds323x::new_ds3231(hal::i2c::Mock::new(&[]));
let mut i2c = dev.destroy_ds3231();
i2c.done();
}