Files
Ton Huisman 4e8109fc08 [Lib] IRremoteESP8266 update to v2.8.6, with ESPEasy patches applied
- Disable some (more) IR protocols to make 1M build fit
- Add IDF 5.x compatibility
2023-11-03 20:47:05 +01:00

19 lines
491 B
C++

// Copyright 2017 David Conran
#ifndef TEST_IRRECV_TEST_H_
#define TEST_IRRECV_TEST_H_
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include "IRutils.h"
#define EXPECT_STATE_EQ(a, b, c) \
for (uint8_t i = 0; i < ceil((c) / 8.0); ++i) { \
EXPECT_EQ((a)[i], (b)[i]) << "Expected state " \
"differs at i = " \
<< uint64ToString(i); \
}
#endif // TEST_IRRECV_TEST_H_