29 #include <gtest/gtest.h>
34 TEST(Resources, Constructors) {
37 EXPECT_EQ(1, default_constructor.
id);
40 std::vector<int> right_ids = {0, 1, -1, 255, -255};
41 for (
auto const id : right_ids) {
43 EXPECT_EQ(std::abs(
id), constructor.
id);
54 std::vector<int> wrong_ids = {256, -256};
55 for (
auto const id : wrong_ids) {
62 int main(
int argc,
char **argv) {
63 testing::InitGoogleTest(&argc, argv);
67 return RUN_ALL_TESTS();