X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestBuildUpDicomDir.cxx;h=11aff99f3105b890b8824b84b1c65453cb76b43e;hb=670957e3ad13752870b57145b297bdd6c04f5a96;hp=de16a5f0a789563414d62bd434887f14c2670afb;hpb=a62b5eb4984601395f2e1296045bacd693ef860d;p=gdcm.git diff --git a/Testing/TestBuildUpDicomDir.cxx b/Testing/TestBuildUpDicomDir.cxx index de16a5f0..11aff99f 100644 --- a/Testing/TestBuildUpDicomDir.cxx +++ b/Testing/TestBuildUpDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestBuildUpDicomDir.cxx,v $ Language: C++ - Date: $Date: 2007/06/21 14:59:06 $ - Version: $Revision: 1.11 $ + Date: $Date: 2007/08/20 13:25:32 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -214,6 +214,17 @@ int TestBuildUpDicomDir(int argc, char *argv[]) return 1; } // Check some value we are sure + + int numberOfPatients = newDicomDir->GetNumberOfPatients(); + if (numberOfPatients != 3) + { + std::cout<<" wrong GetNumberOfPatients() : " << newDicomDir->GetNumberOfPatients() + <<" (should be 3)" <Delete(); + return 1; + } + p1 = newDicomDir->GetFirstPatient(); p2 = newDicomDir->GetNextPatient(); p3 = newDicomDir->GetNextPatient();