We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b8fd25 + 6f4e8f5 commit fca1f84Copy full SHA for fca1f84
src/assert.rs
@@ -70,10 +70,10 @@ macro_rules! generate_assert {
70
#[macro_export]
71
macro_rules! $assert {
72
($test:expr, $truth:expr, $tol:expr) => {
73
- $close($test, $truth, $tol).unwrap();
+ $crate::$close($test, $truth, $tol).unwrap();
74
};
75
($test:expr, $truth:expr, $tol:expr; $comment:expr) => {
76
- $close($test, $truth, $tol).expect($comment);
+ $crate::$close($test, $truth, $tol).expect($comment);
77
78
}
79
}} // generate_assert!
tests/assert.rs
@@ -0,0 +1,9 @@
1
+
2
+extern crate ndarray;
3
+#[macro_use]
4
+extern crate ndarray_linalg;
5
6
+#[test]
7
+fn assert() {
8
+ assert_rclose!(1.0, 1.0, 1e-7);
9
+}
0 commit comments