Skip to content

Passing a file name to judge seems to not work on Windows? #13

@CFiggers

Description

@CFiggers

On Windows, a sample project with this structure:

test-judge
├───src
│       test-judge.janet
└───test
        test.janet

Where /src/test-judge.janet contains:

# src/test-judge.janet
(defn test-fn []
  (print "Hello, world"))

(defn main [& args]
  (print "Hello, World!"))

And /test/test.janet contains:

# /test/test.janet
(use judge)
(import /src/test-judge)

(test (test-judge/test-fn) nil)

Running the following works:

PS test-judge> judge
# test/test.janet
Hello, world

1 passed

But the following does not:

PS test-judge> judge .\test\test.janet

0 passed

I'm running the version that jpm installs with jpm install https://github.com/ianthehenry/judge (presumably, v2.9.0).

The same test structure and the same version of Judge has no problems running in a test Linux environment.

I'm running Janet version 1.38.0, downloaded from the Releases section on janet-lang/janet:

PS > janet --version
1.38.0-local

Am I holding it wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions