From 28dd8a87a427ccd2834c52bd89e1ed44b48546b7 Mon Sep 17 00:00:00 2001 From: rzf Date: Thu, 15 Nov 2007 12:33:14 +0000 Subject: [PATCH] program for testing semcpl.pl git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2013 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- cplint/testsemcpl.pl | 127 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 cplint/testsemcpl.pl diff --git a/cplint/testsemcpl.pl b/cplint/testsemcpl.pl new file mode 100644 index 000000000..a3ed3043b --- /dev/null +++ b/cplint/testsemcpl.pl @@ -0,0 +1,127 @@ +/* + LPAD and CP-Logic reasoning suite + Copyright (c) 2007, Fabrizio Riguzzi + +Test file for semcpl.pl + +Use +:-t. +to execute the test + +*/ + +:-use_module(library(semcpl)). + +epsilon(0.000001). + +close_to(V,T):- + epsilon(E), + TLow is T-E, + THigh is T+E, + TLow