X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeInfo.test.cc;h=f77c530bfbebf3de1deca693ce3eb7b675bb6342;hb=f2f5d59e83863f3b513950173baee1b6da2aee3c;hp=699fd126861cb5d53de75a75edd1e04b3d85bc31;hpb=1806298d27b59847c61931d2bd44932589a782ab;p=senf.git diff --git a/Utils/TypeInfo.test.cc b/Utils/TypeInfo.test.cc index 699fd12..f77c530 100644 --- a/Utils/TypeInfo.test.cc +++ b/Utils/TypeInfo.test.cc @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // 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 @@ -20,7 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Unit tests +/** \file + \brief TypeInfo unit tests */ //#include "TypeInfo.test.hh" //#include "TypeInfo.test.ih" @@ -28,19 +29,19 @@ // Custom includes #include "TypeInfo.hh" -#include +#include "../Utils/auto_unit_test.hh" #include #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// namespace test { - + struct Base { virtual ~Base() {} }; - template + template struct Foo : public Base {}; @@ -51,11 +52,10 @@ BOOST_AUTO_UNIT_TEST(prettyName) { typedef test::Foo< test::Foo, 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, 10>" ); + BOOST_CHECK_EQUAL( senf::prettyName(typeid(int)), "int"); + BOOST_CHECK_EQUAL( senf::prettyName(typeid(baseOb)), "test::Foo, 10>" ); } ///////////////////////////////cc.e//////////////////////////////////////// @@ -64,5 +64,10 @@ BOOST_AUTO_UNIT_TEST(prettyName) // 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: