I use Readline for the Ruby shell challenge: Readline.readline('$ ', true)
This works on my machine (OSX), but it fails when running codecrafters test
. The error message is ‘Expected prompt ("$ ") but received “▽”’.
Output:
[tester::#QP2] Running tests for Stage #QP2 (Autocompletion - Builtin completion)
[tester::#QP2] Running ./your_program.sh
[your-program] ▽
[tester::#QP2] Expected prompt ("$ ") but received "▽"