From 848d0d4a8342dbdbc53a8be1fc86e880db345119 Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@c-s.fr>
Date: Tue, 30 Jan 2007 14:05:46 +0000
Subject: [PATCH] =?UTF-8?q?Correction=20test=20d'erreur=20sur=20des=20vale?=
 =?UTF-8?q?urs=20r=C3=A9elles.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Testing/Code/FeatureExtraction/otbOrientationPath.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
index 2295dfdc97..8882ec211b 100644
--- a/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
+++ b/Testing/Code/FeatureExtraction/otbOrientationPath.cxx
@@ -53,10 +53,11 @@ int otbOrientationPath( int argc, char * argv[] )
         function->SetInputPath( pathElt );
 
 	RealType ResultTheta = function->Evaluate();
+	std::cout.precision(10);
 	std::cout << "Orientation found : " << ResultTheta <<std::endl;
-	if( ResultTheta != Theta )
+	if( abs(ResultTheta-Theta)>=10e-15)
 	{
-		std::cout << "Error in Theta estimation :" << std::endl;
+		std::cout << "Error in Theta estimation:" <<(ResultTheta-Theta)<<std::endl;
 		return EXIT_FAILURE;
 	}
 	
-- 
GitLab