mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
Tests: check the imported instance transforms with is_finite
The gate's test-lint flagged the coefficient .all() check as unguarded.
This commit is contained in:
1 parent
b8f2499b96
commit
7961e2563b
1 file changed
+1
-1
@@ -1158,7 +1158,7 @@ fn a_dashed_block_at_a_tiny_scale_in_a_huge_fitted_drawing_keeps_a_finite_instan
|
||||
}
|
||||
assert!(instances.iter().any(|(symbol, _)| symbol == "D0"), "{instances:?}");
|
||||
for (symbol, xf) in &instances {
|
||||
assert!(xf.as_coeffs().iter().all(|c| c.is_finite()), "{symbol}: {xf:?}");
|
||||
assert!(xf.is_finite(), "{symbol}: {xf:?}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user