-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingp2 - mediumTask that'll be completed in the next sprintTask that'll be completed in the next sprint
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp2 - mediumTask that'll be completed in the next sprintTask that'll be completed in the next sprint