VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Repeat edit test: compare the repeat's actual settings
Don Omondi55a28d245562
diff --git a/crates/engine/src/tests/repeat_edit.rs b/crates/engine/src/tests/repeat_edit.rsindex ca57a569f..f8318ad88 100644--- a/crates/engine/src/tests/repeat_edit.rs+++ b/crates/engine/src/tests/repeat_edit.rs@@ -36,5 +36,6 @@ fn a_double_click_on_a_repeat_isolates_it_to_edit_its_text() {let NodeKind::Text(t) = &s.doc().unwrap().doc.node(text).unwrap().kind else { panic!("not type") };assert_eq!(t.plain_text(), "Bob");assert_eq!(s.doc().unwrap().doc.position(text).and_then(|(p, ..)| p), Some(repeat), "still the repeat's source");- assert_eq!(spec(&s)["rows"], before["rows"], "the repeat keeps its settings");+ assert_eq!(spec(&s)["kind"], before["kind"], "the repeat keeps its settings (rows, columns, spacing)");+ assert!(before["kind"].is_object(), "the settings are read: {before}");}