Basic sanity check test
This commit is contained in:
parent
d1d4d59321
commit
35dbaaf3e8
1 changed files with 18 additions and 0 deletions
|
@ -3,3 +3,21 @@
|
||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn basic_sanity_check() {
|
||||||
|
unsafe {
|
||||||
|
lv_init();
|
||||||
|
|
||||||
|
let hres = lv_disp_get_hor_res(std::ptr::null_mut());
|
||||||
|
assert_eq!(hres, 480);
|
||||||
|
|
||||||
|
let vres = lv_disp_get_ver_res(std::ptr::null_mut());
|
||||||
|
assert_eq!(vres, 320);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue