Skip to content

Commit

Permalink
BUG: Fix ctkDICOMDatabaseTest2
Browse files Browse the repository at this point in the history
  • Loading branch information
Punzo committed Jan 6, 2024
1 parent 6b694d1 commit 70a406c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Libs/DICOM/Core/Testing/Cpp/ctkDICOMDatabaseTest2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ int ctkDICOMDatabaseTest2( int argc, char * argv [] )
//
// Test that the tag interface works to parse ascii
//
QString tag("0008,103e");
QString tag("0008,103E");
unsigned short group, element;
if ( !database.tagToGroupElement(tag, group, element) )
{
std::cerr << "ctkDICOMDatabase: could not parse tag" << std::endl;
return EXIT_FAILURE;
}

if ( group != 0x8 || element != 0x103e )
if ( group != 0x8 || element != 0x103E )
{
std::cerr << "ctkDICOMDatabase: expected: " << "0008,103e" << std::endl;
std::cerr << "ctkDICOMDatabase: expected: " << "0008,103E" << std::endl;
std::cerr << "ctkDICOMDatabase: got: " << group << " " << element << std::endl;
std::cerr << "ctkDICOMDatabase: parsed tag does not match group/element" << std::endl;
return EXIT_FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion Libs/DICOM/Core/Testing/Cpp/ctkDICOMDatabaseTest4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int ctkDICOMDatabaseTest4( int argc, char * argv [] )

if (argc < 2)
{
std::cerr << "ctkDICOMDatabaseTest2: missing dicom filePath argument";
std::cerr << "ctkDICOMDatabaseTest4: missing dicom filePath argument";
std::cerr << std::endl;
return EXIT_FAILURE;
}
Expand Down
2 changes: 1 addition & 1 deletion Libs/DICOM/Core/Testing/Cpp/ctkDICOMDatabaseTest5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int ctkDICOMDatabaseTest5( int argc, char * argv [] )

if (argc < 2)
{
std::cerr << "ctkDICOMDatabaseTest2: missing dicom filePath argument";
std::cerr << "ctkDICOMDatabaseTest5: missing dicom filePath argument";
std::cerr << std::endl;
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 70a406c

Please sign in to comment.