I wrote a program that works fine in my computer but when I run the tests on Exercism, it doesn’t pass any of the true cases and I have no idea why.
What could be making this happen?
Could it be because the true cases need more computation time and the program is stopping assuming false as the return value?
Did you use the CLI to download the exercise (including the tests)?
Did you enable all tests and run them?
Without further information it’s hard to diagnose the problem.
pose post your solution here.
The problem was I was using arrays and I was recompiling the program locally every time, so the arrays were reset.
But in Exercism it kept using the same array and pushing elements into it on every test, so it wasn’t being used as I was using it.