X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestDicomString.cxx;h=ce0efd42f76ed6cf329812cff5df8199f80d33b3;hb=abd6bfcc2b10b5f7447d1758938d7c15c31240af;hp=f12073ed2f7d6d3a74d8d712fcc227fc465af6be;hpb=f0ea8af1179c35ddc83da32df10813899427214d;p=gdcm.git diff --git a/Testing/TestDicomString.cxx b/Testing/TestDicomString.cxx index f12073ed..ce0efd42 100644 --- a/Testing/TestDicomString.cxx +++ b/Testing/TestDicomString.cxx @@ -1,3 +1,20 @@ +/*========================================================================= + + Program: gdcm + Module: $RCSfile: TestDicomString.cxx,v $ + Language: C++ + Date: $Date: 2004/11/16 04:28:20 $ + Version: $Revision: 1.3 $ + + 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" int TestDicomString(int , char* []) @@ -11,7 +28,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);