1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod structures;
mod wad;
pub use self::wad::*;

#[cfg(test)]
mod tests {
    #[test]
    fn read() {
        pub use super::wad::*;
        use std::path::Path;
        use std::fs::File;
        use std::io::Write;

        let wad = Wad::load(&Path::new("TEST.WAD"));
        println!("{:?}", wad);

        let entry = wad.get_entry(b"TEST\0\0\0\0");
        println!("{:x?}", String::from_utf8(entry.unwrap()[0].to_vec()));
    }
}