strafe-project/fixed_wide_vectors/src/tests/tests.rs

10 lines
287 B
Rust
Raw Normal View History

2024-09-05 23:45:44 +00:00
use crate::types::Vector3;
2024-08-28 20:36:17 +00:00
2024-09-05 23:45:44 +00:00
#[test]
fn test_bool(){
assert_eq!(Vector3::new([false,false,false]).any(),false);
assert_eq!(Vector3::new([false,false,true]).any(),true);
assert_eq!(Vector3::new([false,false,true]).all(),false);
assert_eq!(Vector3::new([true,true,true]).all(),true);
}