fix broken tests

This commit is contained in:
Lillian Vixe 2024-04-15 07:22:50 -07:00
parent 40d7d8f949
commit 1b878d752e
3 changed files with 5 additions and 3 deletions

View file

@ -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 {

View file

@ -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);
}

View file

@ -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]