X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FTypeInfo.test.cc;h=f77c530bfbebf3de1deca693ce3eb7b675bb6342;hb=a1fdb7bb122f0b05be809a922d4b7ef5e125fa67;hp=74218af39467e58a65e6f9796b10afb51c921200;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Utils/TypeInfo.test.cc b/Utils/TypeInfo.test.cc index 74218af..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 {}; @@ -53,8 +54,8 @@ BOOST_AUTO_UNIT_TEST(prettyName) TestType ob; test::Base const & baseOb(ob); - BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(int)), "int"); - 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//////////////////////////////////////// @@ -63,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: