mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Input tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user