ABC problem: Difference between revisions
→{{header|Logtalk}}: Simplified test code.
(→{{header|Logtalk}}: Simplified test code.) |
|||
Line 5,900:
word_list(WordList),
blocks(BlockSet)::spell_no_spell(WordList, S, U),
print(
▲ print(@'The following words cannot be spelled by this block set:'),
% test configuration data
block_set([b(b,o), b(x,k), b(d,q), b(c,p), b(n,a),
word_list(['', 'A', 'bark', 'bOOk', 'treAT', 'COmmon', 'sQuaD', 'CONFUSE']).
:- end_object.
Line 5,944 ⟶ 5,938:
?- blocks_test::run.
% The following words can be spelled by this block set:
% - ''
% - 'A'
% - bark
% - treAT
% - sQuaD
% - 'CONFUSE'
% The following words cannot be spelled by this block set:
%
% - 'COmmon'
true.
|