test: add tests for signal operation sugar

TODO: Some tests overflow, so we need to fix that.
This commit is contained in:
Anand Balakrishnan 2023-03-23 14:01:52 -07:00
parent 5b88a1dac6
commit a6dc175c8a
No known key found for this signature in database
3 changed files with 88 additions and 17 deletions

View file

@ -1,10 +1,9 @@
use num_traits::{Num, NumCast, Signed};
use super::traits::LinearInterpolatable;
use crate::signals::utils::{apply1, apply2, apply2_const};
use crate::signals::{ConstantSignal, Signal};
use super::traits::LinearInterpolatable;
impl<T> core::ops::Neg for &Signal<T>
where
T: Signed + Copy,