use std::{fs::File, io::Read};

use metaverse_messages::http::mesh::Mesh;

#[test]
fn handle_mesh_data() {
    let mut file = File::open("tests/data/mesh_data.txt").unwrap();
    let mut buffer = Vec::new();
    file.read_to_end(&mut buffer).unwrap();

    let mesh = Mesh::from_bytes(&buffer).unwrap();
    assert!(mesh.skin.is_some());

    println!("{:?}", mesh);
}
