Neat-Lang / neat

The Neat Language compiler. Early beta?
BSD 3-Clause "New" or "Revised" License
110 stars 9 forks source link

Compiling with `--unittest` activates stdlib unit tests as well, which might not be able to run for a local project #51

Closed rsaarelm closed 3 months ago

rsaarelm commented 3 months ago

I try to run unit tests for my local project by doing

neat --unittest --no-main main.nt
./main.nt

and this fails with

(...path...)/neat-v0.7.0-gcc/src/std/file.nt:91:16: assertion failed: 'isRegularFile("build/neat")' was false
Assertion failed! Aborting.

Apparently it tries to run unit tests in the standard library code and these have requirements that aren't being met. Only unit tests in the local code being compiled should be run.

FeepingCreature commented 3 months ago

oh yeah this is fixed 0.7.1