Input tests

This commit is contained in:
veeso
2021-03-06 15:46:11 +01:00
parent c1780230e9
commit 5b832cea8b
3 changed files with 198 additions and 20 deletions

View File

@@ -333,6 +333,8 @@ mod tests {
// Verify states
assert_eq!(component.states.list_index, 0);
assert_eq!(component.states.list_len, 3);
// get value
assert_eq!(component.get_value(), Payload::Unsigned(0));
// Render
assert_eq!(component.render().unwrap().cursor, 0);
// Handle inputs