Sha256: e70722d01b10b1d2f06a3f3140b3dd8b59f2d09776b81cd7f62172fc949c96c0

Contents?: true

Size: 943 Bytes

Versions: 180

Compression:

Stored size: 943 Bytes

Contents

% Please visit http://exercism.io/languages/prolog/installing
% for instructions on setting up prolog.
% Visit http://exercism.io/languages/prolog/tests
% for help running the tests for prolog exercises.

% The goal below allows tests to be skipped
% unless the "--all" flag is passed at
% the command line.

pending :-
    current_prolog_flag(argv, ['--all'|_]).
pending :-
    write('\nA TEST IS PENDING!\n'),
    fail.

:- begin_tests(hello_word).

    test(hello_world, condition(true)) :-
        hello_world('Hello World!').

    % Once the first test passes, un-skip the following test by
    % changing `pending` in `condition(pedning)` to `true`.
    % Repeat for each test until they are all passing.

    test(hello_world_with_a_name, condition(pending)) :-
        hello_world('Alice', 'Hello Alice!').

    test(hello_world_another_name, condition(pending)) :-
        hello_world('Bob', 'Hello Bob!').

:- end_tests(hello_word).

Version data entries

180 entries across 180 versions & 1 rubygems

Version Path
trackler-2.0.6.41 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.40 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.39 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.38 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.37 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.36 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.35 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.34 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.33 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.32 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.31 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.30 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.29 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.28 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.27 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.26 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.25 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.24 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.23 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.0.6.22 tracks/prolog/exercises/hello-world/hello_world_tests.plt