X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2Fhexdump.test.cc;h=8a17a4039a06fbca7179ab6134f0226b3b7bbf08;hb=412024ed31a4ab4eaea7a4165a434f8efebee325;hp=ac64f5fc0622f9ee1152691b06230b7b8f5fc1a1;hpb=a9fd0471a3ca128c626a6771c4518f33ef78f053;p=senf.git diff --git a/Utils/hexdump.test.cc b/Utils/hexdump.test.cc index ac64f5f..8a17a40 100644 --- a/Utils/hexdump.test.cc +++ b/Utils/hexdump.test.cc @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// Copyright (C) 2007 +// 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 @@ -30,7 +30,7 @@ #include "hexdump.hh" #include -#include +#include "../Utils/auto_unit_test.hh" #include #define prefix_ @@ -40,8 +40,8 @@ BOOST_AUTO_UNIT_TEST(hExDuMp) { char data[] = { 0x18, 0x19, 0x20, 0x21, 0x7c, 0x7d, 0x7e, 0x7f }; std::stringstream s; - senf::hexdump(data, data+sizeof(data), s, 8); - BOOST_CHECK_EQUAL( s.str(), " 0000 18 19 20 21 7c 7d 7e 7f .. ! |}..\n" ); + senf::hexdump(data, data+sizeof(data), s, 10); + BOOST_CHECK_EQUAL( s.str(), " 0000 18 19 20 21 7c 7d 7e 7f .. !| }..\n" ); } ///////////////////////////////cc.e////////////////////////////////////////