Mercurial > hg > orthanc
comparison OrthancServer/UnitTestsSources/ServerIndexTests.cpp @ 5244:72dfa0ac84eb db-protobuf
lookup for labels in orthanc explorer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Apr 2023 16:55:55 +0200 |
parents | df39c7583a49 |
children | eb2684260c19 |
comparison
equal
deleted
inserted
replaced
5243:f00811d14348 | 5244:72dfa0ac84eb |
---|---|
1038 ASSERT_FALSE(found); | 1038 ASSERT_FALSE(found); |
1039 } | 1039 } |
1040 } | 1040 } |
1041 } | 1041 } |
1042 } | 1042 } |
1043 | |
1044 | |
1045 TEST(ServerToolbox, ValidLabels) | |
1046 { | |
1047 ASSERT_TRUE(ServerToolbox::IsValidLabel("abcdefghijklmnopqrstuvwxyz" | |
1048 "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
1049 "0123456789-_.")); | |
1050 ASSERT_FALSE(ServerToolbox::IsValidLabel("")); | |
1051 ASSERT_FALSE(ServerToolbox::IsValidLabel(" ")); | |
1052 ASSERT_FALSE(ServerToolbox::IsValidLabel("&")); | |
1053 } |