Sha256: bf17a4bea8e0fb4d5fc1df0d51a51ff7c45993b85241ef395b806cc6382e41be

Contents?: true

Size: 945 Bytes

Versions: 131

Compression:

Stored size: 945 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_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

131 entries across 131 versions & 1 rubygems

Version Path
trackler-2.2.1.110 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.109 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.108 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.107 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.106 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.105 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.104 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.103 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.102 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.101 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.100 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.99 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.98 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.97 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.96 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.95 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.94 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.93 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.92 tracks/prolog/exercises/hello-world/hello_world_tests.plt
trackler-2.2.1.91 tracks/prolog/exercises/hello-world/hello_world_tests.plt