-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Add tests that validate the wrap around behavior for select and multiselect prompts.
Hints from the author if fixes are required:
_SelectState prev() {
return _SelectState(
options: options,
selectedIndex: (selectedIndex - 1 + options.length) % options.length,
selectedOptions: selectedOptions,
multiple: multiple,
);
} _SelectState next() {
return _SelectState(
options: options,
selectedIndex: (selectedIndex + 1) % options.length,
selectedOptions: selectedOptions,
multiple: multiple,
);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels