1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-23 05:07:46 +00:00

Add MDL::pad_slice test

This commit is contained in:
Joshua Goins 2023-11-24 08:18:15 -05:00
parent cf79810dc9
commit 108d33f166

View file

@ -883,4 +883,12 @@ mod tests {
let mut read_cursor = Cursor::new(v.as_slice());
assert_eq!(MDL::read_single4(&mut read_cursor).unwrap(), a);
}
#[test]
fn pad_slice() {
let a = [3.0, 0.0, -1.0];
let b = [3.0, 0.0, -1.0, 1.0];
assert_eq!(MDL::pad_slice(&a, 1.0), b);
}
}