mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 15:21:17 -05:00
New Document: test that the column count the rows show leaves a preset unchanged
This commit is contained in:
@@ -885,7 +885,7 @@ mod tests {
|
||||
let rows = DocSettings { artboards: 9, layout: ArtboardLayout::GridByColumn, columns: 2, rows: 4, ..DocSettings::default() };
|
||||
let mut s = rows.clone();
|
||||
set_columns(&mut s, 3);
|
||||
assert_eq!((s.columns, s.rows), (3, 4), "3 is what the rows show");
|
||||
assert_eq!(s, rows, "3 is what the rows show");
|
||||
set_columns(&mut s, 2);
|
||||
assert_eq!((s.layout, s.columns, s.rows), (ArtboardLayout::GridByColumn, 2, 0));
|
||||
assert_eq!(s.grid_columns(), 2);
|
||||
|
||||
Reference in New Issue
Block a user