thing-tui tests: pick a word by value
This commit is contained in:
parent
35924cfbf5
commit
59ef24aa0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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() },
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue