Skip to content

Commit

Permalink
Extend the test
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Feb 19, 2024
1 parent ffcd695 commit ff6703d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ mod tests {
let mut source = random::default(42);
let vectors = vec![Vector([4.0, 2.0]), Vector([5.0, 7.0])];
let indices = (0..vectors.len()).collect::<Vec<_>>();
let (plane, _, _) = Plane::build(&vectors, &indices, &mut source);
let (plane, above, below) = Plane::build(&vectors, &indices, &mut source);
assert::close(&plane.normal.0, &[1.0, 5.0], 1e-6);
assert_eq!(above, &[1]);
assert_eq!(below, &[0]);
}
}

0 comments on commit ff6703d

Please sign in to comment.