From 63bd762d12a4d03e73910aeb36cbaa0c116e0594 Mon Sep 17 00:00:00 2001 From: rzf Date: Tue, 4 Dec 2007 18:31:34 +0000 Subject: [PATCH] added test file for semlpadsld.pl and semlpad.pl git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2033 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- cplint/testsemlpad.pl | 113 ++++++++++++++++++++++++++++++++++ cplint/testsemlpadsld.pl | 128 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 cplint/testsemlpad.pl create mode 100644 cplint/testsemlpadsld.pl diff --git a/cplint/testsemlpad.pl b/cplint/testsemlpad.pl new file mode 100644 index 000000000..a21171d75 --- /dev/null +++ b/cplint/testsemlpad.pl @@ -0,0 +1,113 @@ +/* + LPAD and CP-Logic reasoning suite + Copyright (c) 2007, Fabrizio Riguzzi + + list of tests for semlpad.pl + +*/ +:-use_module(library(semlpad)). + +epsilon(0.000001). + +close_to(V,T):- + epsilon(E), + TLow is T-E, + THigh is T+E, + TLow