Sha256: da57fba5783a7426ccab9744e638efa4c17f09b8a574a2d5e862316869e3c9ee

Contents?: true

Size: 947 Bytes

Versions: 68

Compression:

Stored size: 947 Bytes

Contents

% Please visit http://exercism.io/languages/prolog/installation
% 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_world).

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

    % Once the first test passes, un-skip the following test by
    % changing `pending` in `condition(pending)` 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_world).

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.179 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.178 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.177 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.176 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.175 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.174 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.173 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.172 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.171 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.170 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.169 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.167 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.166 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.165 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.164 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.163 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.162 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.161 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.160 tracks/prolog/exercises/hello-world/hello_world_tests.plt