MCU
Loading...
Searching...
No Matches
param_system_test.h
Go to the documentation of this file.
1#ifndef PARAMS_SYSTEM_TEST
2#define PARAMS_SYSTEM_TEST
3
4#include "ParameterSystem.h"
5
6// TODO may wanna do this with a fixed param lib, but for now the regular
7// param lib should be fine
8TEST(ParamSystemTest, test_set_params) {
9 int val = 20;
10 set_parameter(Parameters::CASE_TORQUE_MAXInstance, val);
11 EXPECT_EQ(Parameters::CASE_TORQUE_MAXInstance.get(), val);
12}
13
14TEST(ParamSystemTest, test_set_get_params) {
15 int val = 20;
16 set_parameter(Parameters::CASE_TORQUE_MAXInstance, val);
17 EXPECT_EQ(get_parameter(Parameters::CASE_TORQUE_MAXInstance), val);
18}
19
20#endif
TEST(ParamSystemTest, test_set_params)