mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
Review #996: rustfmt
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
3b742b6c0c
commit
2f458842ae
1 file changed
+1
-6
@@ -273,12 +273,7 @@ fn collecting_explicit_assets_rejects_invalid_ids_without_adding_anything() {
|
||||
let b = rect(&mut s, 50.0, 10.0, 20.0, 20.0);
|
||||
let original_selection = s.doc().unwrap().selection.objects.clone();
|
||||
let before = undo_len(&s);
|
||||
for ids in [
|
||||
json!([a, "not an object"]),
|
||||
json!([a, 3.5]),
|
||||
json!([a, u64::MAX]),
|
||||
json!({"id": a}),
|
||||
] {
|
||||
for ids in [json!([a, "not an object"]), json!([a, 3.5]), json!([a, u64::MAX]), json!({"id": a})] {
|
||||
assert!(s.execute("assets.add", &json!({"ids": ids})).is_err(), "invalid ids: {ids}");
|
||||
assert!(assets(&mut s).is_empty(), "invalid ids must not collect only the valid subset");
|
||||
assert_eq!(undo_len(&s), before);
|
||||
|
||||
Reference in new issue
Block a user