[Lemon-commits] [lemon_svn] hegyi: r1119 - in hugo/trunk/src: hugo/skeletons test

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:43:21 CET 2006


Author: hegyi
Date: Wed Sep  8 14:12:16 2004
New Revision: 1119

Modified:
   hugo/trunk/src/hugo/skeletons/path.h
   hugo/trunk/src/test/path_test.cc

Log:
There was a little troublie with the true return statement

Modified: hugo/trunk/src/hugo/skeletons/path.h
==============================================================================
--- hugo/trunk/src/hugo/skeletons/path.h	(original)
+++ hugo/trunk/src/hugo/skeletons/path.h	Wed Sep  8 14:12:16 2004
@@ -106,9 +106,9 @@
 	EdgeIt& operator++() {}
 
 	/// Comparison operator
-	bool operator==(const EdgeIt& e) const {}
+	bool operator==(const EdgeIt& e) const {return true;}
 	/// Comparison operator
-	bool operator!=(const EdgeIt& e) const {}
+	bool operator!=(const EdgeIt& e) const {return true;}
 // 	/// Comparison operator
 //      /// \todo It is not clear what is the "natural" ordering.
 // 	bool operator<(const EdgeIt& e) const {}

Modified: hugo/trunk/src/test/path_test.cc
==============================================================================
--- hugo/trunk/src/test/path_test.cc	(original)
+++ hugo/trunk/src/test/path_test.cc	Wed Sep  8 14:12:16 2004
@@ -142,6 +142,7 @@
       check(P.to() == v3);
 #endif
 
+#ifndef SKELETON
       cout << "Vegigiteralunk az eleken." << endl;
       typedef DPath::NodeIt NodeIt;
       typedef DPath::EdgeIt EdgeIt;
@@ -150,7 +151,7 @@
       for(P.first(e); e!=INVALID; ++e, ++i) {
 	cout << i << ". el: " <</* e << */endl;
       }
-
+#endif
 
       // Na ja, ez igy nem igazi, mindket esetet le kene tesztelni,
       // de legalabb valami:



More information about the Lemon-commits mailing list