mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
Use a supported assertion in the selection fixture test
This commit is contained in:
1 parent
ec44d1711f
commit
0c508e558f
1 file changed
+1
-1
@@ -116,7 +116,7 @@ fn group_f_unsupported_settings_are_not_silently_replaced() {
|
||||
}
|
||||
for key in ["Top ", "Left", "Btom", "Rght"] {
|
||||
let mut d = rectangle([1.0, 2.0, 3.0, 4.0], false);
|
||||
let D::Descriptor(shape) = &mut d.items[1].1 else { unreachable!() };
|
||||
let D::Descriptor(shape) = &mut d.items[1].1 else { panic!("rectangle fixture must contain a shape") };
|
||||
shape.items.push((code(key), px(9.0)));
|
||||
cases.push((*b"AddT", d));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user