mirror of
https://github.com/bspeice/aeron-rs
synced 2025-08-27 17:54:55 -04:00
Initial version allows for tests that actually run!
This commit is contained in:
16
src/lib.rs
16
src/lib.rs
@ -1,7 +1,19 @@
|
||||
#![allow(non_upper_case_globals)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
fn version_check() {
|
||||
let major = unsafe { crate::aeron_version_major() };
|
||||
let minor = unsafe { crate::aeron_version_minor() };
|
||||
let patch = unsafe { crate::aeron_version_patch() };
|
||||
assert_eq!(major, 1);
|
||||
assert_eq!(minor, 21);
|
||||
assert_eq!(patch, 2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user