From 504ff37c4758ea335f7de7315c4bb84c4bd69823 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 5 Sep 2024 16:45:44 -0700 Subject: [PATCH] write a test --- fixed_wide_vectors/src/tests/tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fixed_wide_vectors/src/tests/tests.rs b/fixed_wide_vectors/src/tests/tests.rs index 8b13789..ed0d8d8 100644 --- a/fixed_wide_vectors/src/tests/tests.rs +++ b/fixed_wide_vectors/src/tests/tests.rs @@ -1 +1,9 @@ +use crate::types::Vector3; +#[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); +}