Programming Questions

  • Newest
  • Popular Tags
  • Ask Question
  • Simple Symbols Ruby Bug?
    I ran this solution against my IRB and returned correct results. Then I submit and it says that ALL tests are incorrect. I run in Test code, and I have to escape "+" twice in "/+[A-Za-z]+/", but I get correct result, then I submit and it still shows ALL test incorrect.. def SimpleSymbols(str) # code goes here return str.split(/+[A-Za-z]+/).join().match(/[A-Za-z]/).nil? end # keep this function call here puts SimpleSymbols(STDIN.gets)
    andretf posted this question on 6/27/18 | ruby, simple, symbols
    Answers
    Log in to write an answer.