1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
extern crate byteorder;

mod mrt;

#[cfg(test)]
mod tests
{
    use std::fs::File;
    use crate::mrt::{MRTReader};

    #[test]
    fn it_works()
    {
        let file = File::open("MRT.mrt").expect("File not found.");
        let mut reader = MRTReader{stream: file};
        assert!(!reader.read().is_err(), "Could not read an MRT entry");
    }
}