1 #include "CbmDetectorList.h"
5 #include <gtest/gtest-spi.h>
6 #include <gtest/gtest.h>
58 TEST(CbmDetectorList, outOfBounds) {
59 CbmDetectorList fList;
62 fList.GetSystemName(111, retName);
63 EXPECT_EQ(
"unknown", retName);
65 fList.GetSystemName(-111, retName);
66 EXPECT_EQ(
"unknown", retName);
68 fList.GetSystemNameCaps(111, retName);
69 EXPECT_EQ(
"unknown", retName);
71 fList.GetSystemNameCaps(-111, retName);
72 EXPECT_EQ(
"UNKNOWN", retName);
77 fList.GetSystemName(detIdFromEnum, retName);
78 EXPECT_EQ(detName, retName);
80 fList.GetSystemName(detId, retName);
81 EXPECT_EQ(detName, retName);
83 fList.GetSystemNameCaps(detIdFromEnum, retName);
84 EXPECT_EQ(detNameUppercase, retName);
86 fList.GetSystemNameCaps(detId, retName);
87 EXPECT_EQ(detNameUppercase, retName);
106 ::testing::Values(
val1,