From 55a28d245562b3ca9c03ddf71ad62ea82515cb77 Mon Sep 17 00:00:00 2001 From: Don Omondi <282319807+mockydevs@users.noreply.github.com> Date: Sun, 1 Nov 2026 09:51:01 +0300 Subject: [PATCH] Repeat edit test: compare the repeat's actual settings RepeatSpec keeps rows, columns and spacing under kind; the test now compares that, and checks it was read. --- crates/engine/src/tests/repeat_edit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/tests/repeat_edit.rs b/crates/engine/src/tests/repeat_edit.rs index 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}"); }