Skip to content

Commit

Permalink
Fix CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
staticintlucas committed Apr 28, 2024
1 parent 98220b3 commit 582296c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ where
}
}

/// Assert that two values are approximately equal
#[macro_export]
macro_rules! assert_is_close {
($lhs:expr, $rhs:expr $(,)?) => {
Expand Down Expand Up @@ -76,6 +77,8 @@ macro_rules! assert_is_close {
};
}

/// Assert that two values are approximately equal using the given relative
/// tolerance
#[macro_export]
macro_rules! assert_is_close_rel_tol {
($lhs:expr, $rhs:expr, $rel_tol:expr $(,)?) => {
Expand Down Expand Up @@ -107,6 +110,8 @@ macro_rules! assert_is_close_rel_tol {
};
}

/// Assert that two values are approximately equal using the given absolute
/// tolerance
#[macro_export]
macro_rules! assert_is_close_abs_tol {
($lhs:expr, $rhs:expr, $abs_tol:expr $(,)?) => {
Expand Down Expand Up @@ -138,6 +143,8 @@ macro_rules! assert_is_close_abs_tol {
};
}

/// Assert that two values are approximately equal using the given relative and
/// absolute tolerances
#[macro_export]
macro_rules! assert_is_close_tol {
($lhs:expr, $rhs:expr, $rel_tol:expr, $abs_tol:expr $(,)?) => {
Expand Down

0 comments on commit 582296c

Please sign in to comment.