use main to call all tests:
This commit is contained in:
@@ -6,18 +6,28 @@
|
||||
%% under the terms of the GNU Lesser General Public License as published by the
|
||||
%% Free Software Foundation, either version 3 of the License, or (at your
|
||||
%% option) any later version.
|
||||
%%
|
||||
%%
|
||||
%% This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
%% more details.
|
||||
%%
|
||||
%%
|
||||
%% You should have received a copy of the GNU Lesser General Public License
|
||||
%% along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
%%=============================================================================
|
||||
|
||||
:- use_module(library(gecode/clpfd)).
|
||||
|
||||
main :-
|
||||
statistics( runtime, _ ),
|
||||
once( send_more_money(Letters) ),
|
||||
statistics( runtime, [DT|_] ),
|
||||
% findall(Queens, queens(I, Queens), Solutions ),
|
||||
% length( Solutions, N),
|
||||
format('took ~w msec to find first solution, ~w.~n', [I, DT, Letters]),
|
||||
fail.
|
||||
main.
|
||||
|
||||
% S E N D
|
||||
% + M O R E
|
||||
% ---------
|
||||
|
Reference in New Issue
Block a user