Ruby Test Case
Closed this issue · 1 comments
jm-uwat commented
I believe the given Ruby test case input is not properly formatted resulting in a false negative.
The command is
output = `ruby translator.rb Abc 123 xYz`
However, since the input string is multiple words, it should be wrapped as in quotations:
output = `ruby translator.rb 'Abc 123 xYz'`
Otherwise (as it is currently), it will only read the first word which is Abc
and lead to an incorrect program output and thus fail the test.
doublederek commented
The ruby test is actually correct. Ruby has a way of extracting all command line arguments.