Skip to content

test.sl doesn't work from the test directory #5

Open
@acook

Description

@acook

Given: slash-cli is compiled and you have the slash source code

When: You're in the slash/test directory
And: You run slash-cli test.sl core/array.sl
Then: You see this error:

NameError: Undefined constant 'Test' in Object
  at <main> in /Users/acook/Pork/slash/test/test.sl, line 3
  at <main> in test.sl, line 3

However

When: You're in the slash root source directory
And: You run slash-cli test/test.sl test/core/array.sl
Then: Tests are run successfully with this output:

...................

Tests finished. 19 passes, 0 failures, 182 assertions.

That seems weird to me. I can't figure out why just from looking at the source code either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions