mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 18:45:55 +00:00
step_in tests: a face with too many bounds is refused by the reader's own limit
The face-bounds limit lives in crates/step's topology (MAX_BOUNDS,54b10b9a3) since the truck reader that said 'boundary loops' went (ab8bc6625); it names the face and its bound count. The test asserts that message; the time bound stays. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1540,7 +1540,7 @@ fn faces_with_too_many_bounds_are_refused() {
|
||||
|
||||
let start = std::time::Instant::now();
|
||||
let imp = step_import(&text).unwrap();
|
||||
assert!(imp.warnings.iter().any(|w| w.contains("boundary loops")), "{:?}", imp.warnings);
|
||||
assert!(imp.warnings.iter().any(|w| w.contains("face #900000 with 100000 bounds")), "{:?}", imp.warnings);
|
||||
assert!(start.elapsed() < std::time::Duration::from_secs(10), "took {:?}", start.elapsed());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user