fix broken tests
This commit is contained in:
parent
40d7d8f949
commit
1b878d752e
|
@ -152,7 +152,7 @@ pub fn edit_window_ui(
|
|||
|
||||
fn color_from(egui_color: Hsva) -> Color {
|
||||
let rgb = rgb_from_hsv((egui_color.h, egui_color.s, egui_color.v));
|
||||
return Color::rgb_linear_from_array(rgb);
|
||||
return Color::rgb_from_array(rgb);
|
||||
}
|
||||
|
||||
fn egui_color_from(color: Color) -> Hsva {
|
||||
|
|
|
@ -283,5 +283,5 @@ pub fn test_string_tree() {
|
|||
assert!(dbg!(tester.add(child2, Some(parent2))));
|
||||
tester = dbg!(tester);
|
||||
assert!(dbg!(tester.move_branch(parent2, parent)));
|
||||
tester = dbg!(tester);
|
||||
dbg!(tester);
|
||||
}
|
||||
|
|
|
@ -597,7 +597,9 @@ pub fn test_removal() {
|
|||
let mut test_tree = OctTree::new(Vec3::ZERO, 0);
|
||||
test_tree.set_voxel_at_location(Vec3::splat(10.), 5);
|
||||
test_tree.remove_voxel(Vec3::ZERO);
|
||||
assert_eq!(test_tree.size, 1);
|
||||
assert_eq!(test_tree.collect_voxels().len(), 1);
|
||||
|
||||
// NEEDS IMPROVEMENT
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue