Skip to content

Commit

Permalink
[HAIER_AC176/HAIER_AC_YRW02] Small fix Quiet and Turbo test (#1674)
Browse files Browse the repository at this point in the history
* Mark `Quiet` and `Turbo` as supported in `toCommon` test
  • Loading branch information
PtilopsisLeucotis authored Nov 12, 2021
1 parent 291f13b commit a727486
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/ir_Haier_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ TEST(TestHaierACYRW02Class, toCommon) {
ac.setSwingH(kHaierAcYrw02SwingHRightMax);
ac.setHealth(true);
ac.setSleep(true);
ac.setTurbo(true);
// Now test it.
ASSERT_EQ(decode_type_t::HAIER_AC_YRW02, ac.toCommon().protocol);
ASSERT_EQ(-1, ac.toCommon().model);
Expand All @@ -1248,10 +1249,10 @@ TEST(TestHaierACYRW02Class, toCommon) {
ASSERT_EQ(stdAc::swingv_t::kHighest, ac.toCommon().swingv);
ASSERT_EQ(stdAc::swingh_t::kRightMax, ac.toCommon().swingh);
ASSERT_EQ(0, ac.toCommon().sleep);
ASSERT_TRUE(ac.toCommon().turbo);
ASSERT_FALSE(ac.toCommon().quiet);
// Unsupported.
ASSERT_FALSE(ac.toCommon().turbo);
ASSERT_FALSE(ac.toCommon().light);
ASSERT_FALSE(ac.toCommon().quiet);
ASSERT_FALSE(ac.toCommon().econo);
ASSERT_FALSE(ac.toCommon().clean);
ASSERT_TRUE(ac.toCommon().beep);
Expand Down

0 comments on commit a727486

Please sign in to comment.