1 /*=========================================================================
4 Module: $RCSfile: TestUtil.cxx,v $
6 Date: $Date: 2004/12/07 13:39:32 $
7 Version: $Revision: 1.5 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
18 // This test should test everything in Util, since I didn't know any other
19 // way to test this class.
24 int TestUtil(int , char * [])
27 std::cout << gdcm::Util::CreateUniqueUID("") << std::endl;
30 const char ref[] = "MONOCHROME1";
31 std::string a = "MONOCHROME1";
33 std::string b = "MONOCHROME1 ";
34 std::string c = gdcm::Util::DicomString("MONOCHROME1");
35 std::string d = "MONOCHROME1";
37 if( !gdcm::Util::DicomStringEqual(a,ref) )
39 if( !gdcm::Util::DicomStringEqual(b,ref) )
41 if( !gdcm::Util::DicomStringEqual(c,ref) )
43 if( gdcm::Util::DicomStringEqual(d,ref) )