fn test(fov_angle: f32, expected_vision: &'static str) {
            TestCase {
                foods: vec![
                    food(0.0, 0.0),
                    food(0.0, 0.33),
                    food(0.0, 0.66),
                    food(0.0, 1.0),
                    food(1.0, 0.0),
                    food(1.0, 0.33),
                    food(1.0, 0.66),
                    food(1.0, 1.0),
                ],
                fov_range: 1.0,
                x: 0.5,
                y: 0.5,
                rot: 0.0,
                fov_angle,
                expected_vision,
            }.run()
        }
// FOV is wide = 8 foods

FOV is wide = 8 foods
FOV is wide = 8 foods
fn test(fov_angle: f32, expected_vision: &'static str) {
            TestCase {
                foods: vec![
                    food(0.0, 0.0),
                    food(0.0, 0.33),
                    food(0.0, 0.66),
                    food(0.0, 1.0),
                    food(1.0, 0.0),
                    food(1.0, 0.33),
                    food(1.0, 0.66),
                    food(1.0, 1.0),
                ],
                fov_range: 1.0,
                x: 0.5,
                y: 0.5,
                rot: 0.0,
                fov_angle,
                expected_vision,
            }.run()
        }
fn test ( fov_angle : f32 , expected_vision : & ' static str ) { TestCase { foods : vec ! [ food ( 0.0 0.0 ) food ( 0.0 0.33 ) food ( 0.0 0.66 ) food ( 0.0 1.0 ) food ( 1.0 0.0 ) food ( 1.0 0.33 ) food ( 1.0 0.66 ) food ( 1.0 1.0 ) ] , fov_range : 1.0 , x : 0.5 , y : 0.5 , rot : 0.0 , fov_angle , expected_vision , } . run ( ) }
FOV is wide = 8 foods
FOV is wide = 8 foods
fov_angle
f32
expected_vision
&'static str
fov_angle
f32
expected_vision
&'static str