Skip to content

Instantly share code, notes, and snippets.

@Jnforja
Created June 13, 2020 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jnforja/1020f038b9fc1e2b3652b6c4b7645bd3 to your computer and use it in GitHub Desktop.
Save Jnforja/1020f038b9fc1e2b3652b6c4b7645bd3 to your computer and use it in GitHub Desktop.
1. When the name to search is not specified, all characters are shown despite their name.
2. When searching for the name "Rick", shows all characters that contain "Rick" in its name.
3. When searching for the name "ick", shows all characters that contain "ick" in its name.
4. When searching for a name that's not part of any character's name, a message is shown to inform the user that there are no characters for their search.
5. Searching for a name should be case insensitive.
6. When the status is not specified, all characters are shown despite their status.
7. When searching for characters with status, "Alive", shows all characters that are alive.
8. When searching for characters with status, "Dead", shows all characters that are dead.
9. When searching for characters with status "Unknown", shows all characters that is not known if they're alive or dead.
10. When searching for a character with the name "Rick" and the status "Alive", all characters with the name Rick that are alive are shown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment