thing-tui tests: pick a word by value

This commit is contained in:
Meta Vens 2026-11-28 10:09:20 +01:00
commit 59ef24aa0d

View file

@ -79,7 +79,7 @@ fn commands(rng: &mut Rng, count: usize, cols: u64, rows: u64) -> Vec<RenderComm
out.push(match rng.below(8) {
0 | 1 => fill(rect(x, y, w, h), color),
2 => stroke(rect(x, y, w, h), color),
3 | 4 | 5 => text(x, y, rng.pick(&WORDS), color),
3 | 4 | 5 => text(x, y, *rng.pick(&WORDS), color),
6 => RenderCommand::Polyline { points: vec![(x, y), (x + w, y + h)], width: 1.0, color },
_ => RenderCommand::Embed { rect: rect(x, y, w.min(3.0), h.min(2.0)), slot_kind: String::new(), slot_id: String::new() },
});