Packets: Fix VariantParser invalid parser access bug
[senf.git] / Utils / TypeInfo.test.cc
index 699fd12..b7a15da 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
-// Copyright (C) 2006 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Copyright (C) 2006
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+//     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // Custom includes
 #include "TypeInfo.hh"
 
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
 
 namespace test {
-    
+
     struct Base {
         virtual ~Base() {}
     };
 
-    template <class C, unsigned N>
+    template <class C, int N>
     struct Foo : public Base
     {};
 
@@ -51,11 +51,10 @@ BOOST_AUTO_UNIT_TEST(prettyName)
 {
     typedef test::Foo< test::Foo<test::Blub, 1>, 10> TestType;
     TestType ob;
-    // test::Base const & baseOb(ob);
+    test::Base const & baseOb(ob);
 
-    BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(int)), "int");
-    // The exact representation is compiler version dependent ... 
-    // BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(baseOb)), "test::Foo<test::Foo<test::Blub, 1>, 10>" );
+    BOOST_CHECK_EQUAL( senf::prettyName(typeid(int)), "int");
+    BOOST_CHECK_EQUAL( senf::prettyName(typeid(baseOb)), "test::Foo<test::Foo<test::Blub, 1>, 10>" );
 }
 
 ///////////////////////////////cc.e////////////////////////////////////////
@@ -64,5 +63,10 @@ BOOST_AUTO_UNIT_TEST(prettyName)
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: