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.
1 parent 51f32ee commit 34fd91cCopy full SHA for 34fd91c
src/assert.rs
@@ -35,6 +35,7 @@ where
35
D: Dimension,
36
D::Pattern: PartialEq + Debug,
37
{
38
+ assert_eq!(test.dim(), truth.dim());
39
let tol = (test - truth).norm_max();
40
if tol > atol {
41
eprintln!("Expected:\n{}", truth);
@@ -52,6 +53,7 @@ where
52
53
54
55
56
57
let tol = (test - truth).norm_l1() / truth.norm_l1();
58
if tol > rtol {
59
@@ -69,6 +71,7 @@ where
69
71
70
72
73
74
75
let tol = (test - truth).norm_l2() / truth.norm_l2();
76
77
0 commit comments