Maxwell Henderson | 6a929ff | 2024-01-14 20:03:59 -0800 | [diff] [blame] | 1 | #include "glog/logging.h" |
| 2 | #include "gtest/gtest.h" |
| 3 | |
| 4 | #include "aos/json_to_flatbuffer.h" |
| 5 | #include "y2024/constants/constants_list_generated.h" |
| 6 | |
Maxwell Henderson | 09a4b02 | 2024-01-19 21:39:51 -0800 | [diff] [blame] | 7 | namespace y2024::constants::testing { |
Maxwell Henderson | 6a929ff | 2024-01-14 20:03:59 -0800 | [diff] [blame] | 8 | class ConstantsValidatorTest : public ::testing::Test {}; |
| 9 | |
| 10 | TEST_F(ConstantsValidatorTest, CheckConstants) { |
Austin Schuh | 3db875a | 2024-02-18 20:02:40 -0800 | [diff] [blame] | 11 | ASSERT_TRUE(aos::JsonFileToFlatbuffer<y2024::ConstantsList>( |
| 12 | "y2024/constants/constants.json") |
| 13 | .message() |
| 14 | .constants() != nullptr) |
| 15 | << ": Failed to parse y2024/constants/constants.json"; |
Maxwell Henderson | 6a929ff | 2024-01-14 20:03:59 -0800 | [diff] [blame] | 16 | } |
| 17 | |
Maxwell Henderson | 09a4b02 | 2024-01-19 21:39:51 -0800 | [diff] [blame] | 18 | } // namespace y2024::constants::testing |