Skip to content

Commit

Permalink
Additional unit test for getModel()
Browse files Browse the repository at this point in the history
  • Loading branch information
crankyoldgit committed Nov 6, 2021
1 parent be51b41 commit 812fa8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/ir_Mirage_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,4 +581,11 @@ TEST(TestMirageAcClass, getModel) {
0x56, 0x74, 0x00, 0x00, 0x12, 0x00, 0x40, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1D};
EXPECT_EQ(mirage_ac_remote_model_t::KKG29AC1, IRMirageAc::getModel(KKG29AC1));

// https://github.com/crankyoldgit/IRremoteESP8266/issues/1573#issuecomment-962362540
const uint8_t KKG29AC1_2[kMirageStateLength] = {
0x56, 0x72, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19};
EXPECT_EQ(mirage_ac_remote_model_t::KKG29AC1,
IRMirageAc::getModel(KKG29AC1_2));
}

0 comments on commit 812fa8f

Please sign in to comment.