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:
parent
cf79810dc9
commit
108d33f166
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue