Radio group

This commit is contained in:
veeso
2021-03-06 16:16:36 +01:00
parent 5b832cea8b
commit b2d816d20c
4 changed files with 338 additions and 1 deletions

View File

@@ -420,7 +420,7 @@ mod tests {
component.states.cursor = 1;
component.props.input_len = Some(16); // Let's change length
assert_eq!(
component.on(InputEvent::Key(KeyEvent::from(KeyCode::Right))), // between 'e' and 'l'
component.on(InputEvent::Key(KeyEvent::from(KeyCode::Right))), // between 'e' and 'l'
Msg::None
);
assert_eq!(component.render().unwrap().cursor, 2); // Should increment