mirror of https://github.com/eldruin/ds323x-rs
13 lines
256 B
Rust
13 lines
256 B
Rust
|
#[deny(warnings)]
|
||
|
|
||
|
extern crate embedded_hal_mock as hal;
|
||
|
extern crate ds323x;
|
||
|
use ds323x::Ds323x;
|
||
|
|
||
|
#[test]
|
||
|
fn can_create_and_destroy() {
|
||
|
let dev = Ds323x::new_ds3232(hal::i2c::Mock::new(&[]));
|
||
|
let mut i2c = dev.destroy_ds3232();
|
||
|
i2c.done();
|
||
|
}
|