comp426-2022-spring / comp426-2022-spring/a02
Trouble with Passing one of the autograder Test
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am just having trouble with passing one of the Autograder test, which is the Flip many coins with random number argument.
I went into the Autograder.json file to see what test was being run for that specific test, and I'm just a bit confused because doing
`NUMBER=\"$(shuf -i 100-500 -n 1)\" && node flips.js --number=$NUMBER` does not work, but just doing
`node flips.js --number=30` works perfectly fine.
Is there something missing that needs to be addressed in the code?
Thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with Autograder.json and flips.js, then run the two commands shown in the issue to reproduce the difference between a random number and a fixed number. Check the argument-handling path and confirm that the random-number autograder test passes without breaking the fixed-number case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100