Skip to content

Commit

Permalink
Another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
khueue committed Oct 1, 2011
1 parent 1cb2391 commit 2b0fade
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nine.pl
Expand Up @@ -38,11 +38,15 @@


:- begin_tests(nine2). :- begin_tests(nine2).


test('test XXX') :- test('a valid grid') :-
Word = marskland, Word = marskland,
nine2(Word, [n,l,a, s,k,a, d,r,m]), nine2(Word, [n,l,a, s,k,a, d,r,m]),
!. !.


test('an invalid grid') :-
Word = marskland,
\+ nine2(Word, [r,n,a, l,k,a, s,d,m]). % Subword 'nalkas'.

:- end_tests(nine2). :- end_tests(nine2).


nine2(Word, Grid) :- nine2(Word, Grid) :-
Expand Down

0 comments on commit 2b0fade

Please sign in to comment.