Skip to content

Commit

Permalink
Add examples that cause problems and show bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rchriste committed Oct 18, 2024
1 parent fc69a40 commit 22327c8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion inquire/examples/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use inquire::Select;

fn main() {
let options = vec![
" [πŸƒβ€β™‚οΈ Needs a reason] | Some text to use up space β¬… More text to use up space β¬… More and more and more text to use up space β¬… More and more text to use up space β¬… More and more text to use up space β¬… More text to use up space β¬… More Text to use up space β¬… More text to use up space β¬… More text to use up space β¬… Final text section",
"Banana",
"Apple",
"Strawberry",
Expand All @@ -13,7 +14,14 @@ fn main() {
"Pear",
"Avocado",
"Pineapple",
];
//"Download - school webpage - https://web.archive.org/web/20150910082528/http://www.cs.utah.edu/~rchriste/ β¬… 🎯🏞 Save a history of my life / Journaling / Family History β¬… 🎯 Save a history of my life / Journaling",
// "πŸ”₯ [πŸ‘¨β€πŸ‘¦ Needs a reason] |πŸ”΄ πŸͺœ Some text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More and more and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More Text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More text to use up space β¬… 🎯 Final text section",
// "πŸ”₯ [πŸ—οΈ Needs a reason] |πŸ”΄ πŸͺœ Some text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More and more and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More Text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More text to use up space β¬… 🎯 Final text section",
//This next one works fine
//"πŸ”₯ [πŸƒ Needs a reason] |πŸ”΄ πŸͺœ Some text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More and more and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More Text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More text to use up space β¬… 🎯 Final text section",
// "πŸ”₯ [πŸƒβ€β™‚οΈ Needs a reason] |πŸ”΄ πŸͺœ Some text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More and more and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More and more text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More Text to use up space β¬… πŸͺœ More text to use up space β¬… πŸͺœ More text to use up space β¬… 🎯 Final text section",

];

let ans = Select::new("What's your favorite fruit?", options).prompt();

Expand Down

0 comments on commit 22327c8

Please sign in to comment.