X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomString.cxx;h=c778fa112a7a7dd8d09583d1dcfed48470404a9a;hb=de628879bbc28ca8a1c93f293d7b6c49692ebe55;hp=f12073ed2f7d6d3a74d8d712fcc227fc465af6be;hpb=f0ea8af1179c35ddc83da32df10813899427214d;p=gdcm.git diff --git a/Testing/TestDicomString.cxx b/Testing/TestDicomString.cxx index f12073ed..c778fa11 100644 --- a/Testing/TestDicomString.cxx +++ b/Testing/TestDicomString.cxx @@ -1,4 +1,22 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestDicomString.cxx,v $ + Language: C++ + Date: $Date: 2005/01/08 23:18:31 $ + Version: $Revision: 1.4 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "gdcmUtil.h" +#include int TestDicomString(int , char* []) { @@ -11,7 +29,7 @@ int TestDicomString(int , char* []) assert( a.c_str()[i] == '\0' ); assert( a.data()[i] == '\0' ); } - assert( a.c_str()[3] == '\0' ); + assert( a.c_str()[2] == '\0' ); /* std::string zeros(x, 0);