blob: 3168993c7309c979f188c3a463c11ff88b1235e1 [file] [log] [blame]
Ed Tanous828c5a62024-02-09 16:59:22 -08001#include "IpmbSensor.hpp"
2
3#include <cstddef>
4#include <cstdint>
5#include <vector>
6
7#include <gtest/gtest.h>
8
9namespace
10{
11
12TEST(IPMBSensor, Byte0)
13{
14 std::vector<uint8_t> data;
15 data.push_back(42);
16
17 double responseValue = 0.0;
18 size_t errCount = 0;
19 EXPECT_TRUE(IpmbSensor::processReading(ReadingFormat::byte0, 0, data,
20 responseValue, errCount));
21 EXPECT_EQ(responseValue, 42.0);
22}
23} // namespace