Sha256: c0a320864920062b64dbee6824e14f96b7a8f240df459fb19aec49e05fa2f79f

Contents?: true

Size: 876 Bytes

Versions: 72

Compression:

Stored size: 876 Bytes

Contents

##Running Tests

SWI Prolog can either be run interactively or by executing it directly at the
command line.

To run prolog interactively first run:

`$ swipl`

After the prolog console starts, load your implementation and run the tests
with:

```
?- ["hello_world.pl"].
?- ["hello_world_tests.plt"].
?- run_tests.
```

To run your implementation directly run:

`swipl -f hello_world.pl -s hello_world_tests.plt -g run_tests,halt -t
'halt(1)'`

In both cases, replace `hello_world.pl` and `hello_world_tests.plt` with the
name of the exercise you are implementing.

When you first begin an exercise, only the first test will run. The rest have
been skipped by adding `condition(pedning)` to the `test` goal. Once the first
test passes, un-skip the next test by changing `pending` in `condition(pedning)`
to `true`. Repeat for each test until they are all running and passing.

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
trackler-2.0.6.33 tracks/prolog/docs/TESTS.md
trackler-2.0.6.32 tracks/prolog/docs/TESTS.md
trackler-2.0.6.31 tracks/prolog/docs/TESTS.md
trackler-2.0.6.30 tracks/prolog/docs/TESTS.md
trackler-2.0.6.29 tracks/prolog/docs/TESTS.md
trackler-2.0.6.28 tracks/prolog/docs/TESTS.md
trackler-2.0.6.27 tracks/prolog/docs/TESTS.md
trackler-2.0.6.26 tracks/prolog/docs/TESTS.md
trackler-2.0.6.25 tracks/prolog/docs/TESTS.md
trackler-2.0.6.24 tracks/prolog/docs/TESTS.md
trackler-2.0.6.23 tracks/prolog/docs/TESTS.md
trackler-2.0.6.22 tracks/prolog/docs/TESTS.md
trackler-2.0.6.21 tracks/prolog/docs/TESTS.md
trackler-2.0.6.20 tracks/prolog/docs/TESTS.md
trackler-2.0.6.19 tracks/prolog/docs/TESTS.md
trackler-2.0.6.18 tracks/prolog/docs/TESTS.md
trackler-2.0.6.17 tracks/prolog/docs/TESTS.md
trackler-2.0.6.16 tracks/prolog/docs/TESTS.md
trackler-2.0.6.15 tracks/prolog/docs/TESTS.md
trackler-2.0.6.14 tracks/prolog/docs/TESTS.md