blob: 79dedf65187c0c3165a8e055f35ca1742c5a7952 [file] [log] [blame]
Maxwell Henderson6a929ff2024-01-14 20:03:59 -08001#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 Henderson09a4b022024-01-19 21:39:51 -08007namespace y2024::constants::testing {
Maxwell Henderson6a929ff2024-01-14 20:03:59 -08008class ConstantsValidatorTest : public ::testing::Test {};
9
10TEST_F(ConstantsValidatorTest, CheckConstants) {
Austin Schuh3db875a2024-02-18 20:02:40 -080011 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 Henderson6a929ff2024-01-14 20:03:59 -080016}
17
Maxwell Henderson09a4b022024-01-19 21:39:51 -080018} // namespace y2024::constants::testing