-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.sl doesn't work from the test directory #5
Comments
I think the best way to solve this would be to put |
Ruby 1.9 deals with a similar problem by requiring require './test' I think its a pretty solid approach. You shouldn't have to choose between your files and your standard library. |
Yeah it works well for Ruby, but not so much for the use case Slash is designed for IMO. Also, Slash has explicit require but I want to emphasize |
Ah, I see, you want autodiscovery of classes. That's actually a more interesting goal. In that case, you should probably just rename the file to Another option, would be to ignore the current file when doing a lookup, and you might want to do that anyway, but I still think renaming the file is in order. |
Given: slash-cli is compiled and you have the slash source code
When: You're in the
slash/test
directoryAnd: You run
slash-cli test.sl core/array.sl
Then: You see this error:
However
When: You're in the
slash
root source directoryAnd: You run
slash-cli test/test.sl test/core/array.sl
Then: Tests are run successfully with this output:
That seems weird to me. I can't figure out why just from looking at the source code either.
The text was updated successfully, but these errors were encountered: