-
Notifications
You must be signed in to change notification settings - Fork 4
/
tests.pl
33 lines (26 loc) · 931 Bytes
/
tests.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%% -*- prolog -*-
%%---------------------------------------------------------------
%% Project : logilic
%% File : tests.pl
%% Copyright : (C) 2012 by
%% Author : Frederic Lepied
%% Created On : Sun Dec 2 15:00:59 2012
%% Purpose : test to validate logilic engine
%%---------------------------------------------------------------
:- begin_tests(predicates).
:- consult('predicates.pl').
:- consult('licenses.pl').
:- consult('project1.pl').
test(duties) :-
duties(L),
assertion(L == [(xbmc,provide_sourcecode), (openssl,mention_in_doc), (qt,provide_sourcecode)]).
test(invalid_components) :-
invalid_components(L),
assertion(L == []).
test(licenses) :-
licenses('xbmc', L), compatible_licenses(L),
assertion(L == [gpl_license]).
test(licenses, fail) :-
licenses('prog1', L), compatible_licenses(L).
:- end_tests(predicates).
%% tests.pl ends here