Add assertEqual function to KCL stdlib (#3279)

Takes a tolerance, because floating-point imprecision.
This commit is contained in:
Adam Chalmers
2024-08-05 11:31:58 -05:00
committed by GitHub
parent 543e809739
commit 84865eaed0
7 changed files with 118 additions and 4 deletions

View File

@ -120,6 +120,7 @@ lazy_static! {
Box::new(crate::std::math::ToRadians),
Box::new(crate::std::polar::Polar),
Box::new(crate::std::assert::Assert),
Box::new(crate::std::assert::AssertEqual),
Box::new(crate::std::assert::AssertLessThan),
Box::new(crate::std::assert::AssertGreaterThan),
Box::new(crate::std::assert::AssertLessThanOrEq),