Describe the bug
If there is a file in the exercises directory called "stdin", the application will crash if it's randomly selected
To Reproduce
Steps to reproduce the behavior:
- move your exercise files from the exercise directory elsewhere
echo "haha" >> ~/.config/sweet/exercises/stdin
sweet
Output
panic: runtime error: index out of range [1] with length 1
Expected behavior
I expect a file named stdin would not break the program
Sweet version
v0.2.0
Desktop (please complete the following information):
- OS: Pop_OS
- Version: 22.04 LTS