Skip to content

Commit 6e0ee2b

Browse files
committed
Added new UT cases for Argo WREM2
From captures in issue #1859 Signed-off-by: Mateusz Bronk <bronk.m+gh@gmail.com>
1 parent 9c51ac4 commit 6e0ee2b

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

test/ir_Argo_test.cpp

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,9 @@ INSTANTIATE_TEST_CASE_P(
15941594
TestDecodeArgo,
15951595
TestArgoE2E,
15961596
::testing::Values(
1597+
//////
1598+
// WREM3 test cases (capture source: issue #1912)
1599+
//////
15971600
ArgoE2ETestParam(
15981601
std::vector<uint16_t> {
15991602
6468, 3150, 456, 2154, 428, 2152, 462, 874, 422, 2158, 424, 882,
@@ -1675,7 +1678,7 @@ INSTANTIATE_TEST_CASE_P(
16751678

16761679

16771680
//////
1678-
// WREM2 test cases
1681+
// WREM2 test cases (capture source: issue #2133)
16791682
//////
16801683
ArgoE2ETestParam(
16811684
std::vector<uint16_t> {
@@ -1765,6 +1768,48 @@ INSTANTIATE_TEST_CASE_P(
17651768
kArgoShortBits,
17661769
std::vector<uint8_t> { 0xAC, 0xF5, 0xAA, 0x4B },
17671770
"Model: 1 (WREM2), Sensor Temp: 25C",
1771+
argo_ac_remote_model_t::SAC_WREM2),
1772+
1773+
//////
1774+
// WREM2 test cases (capture source: issue #1859)
1775+
//////
1776+
ArgoE2ETestParam(
1777+
std::vector<uint16_t> {
1778+
6420, 3168, 442, 834, 442, 834, 442, 2112, 442, 2114, 442, 834, 442,
1779+
2112, 444, 834, 442, 2114, 442, 2114, 440, 836, 442, 2112, 442, 836,
1780+
442, 2112, 442, 2114, 442, 2114, 442, 2114, 442, 836, 442, 2114, 442,
1781+
836, 442, 834, 442, 836, 442, 2114, 442, 2114, 442, 2114, 442, 2114,
1782+
442, 2114, 442, 834, 442, 836, 442, 836, 442, 836, 442, 836, 442, 2114,
1783+
442
1784+
},
1785+
kArgoShortBits,
1786+
std::vector<uint8_t> { 0xAC, 0xF5, 0xE2, 0x83 },
1787+
"Model: 1 (WREM2), Sensor Temp: 32C",
1788+
argo_ac_remote_model_t::SAC_WREM2),
1789+
1790+
1791+
ArgoE2ETestParam(
1792+
std::vector<uint16_t> {
1793+
6418, 3168, 442, 836, 442, 834, 442, 2114, 442, 2114, 442, 836, 442,
1794+
2114, 442, 836, 440, 2114, 442, 2114, 442, 836, 442, 2112, 442, 834,
1795+
442, 2112, 442, 2112, 444, 2112, 442, 2114, 442, 836, 442, 836, 442,
1796+
834, 442, 834, 442, 2112, 442, 836, 442, 834, 442, 836, 440, 2114,
1797+
442, 836, 440, 2114, 442, 836, 442, 836, 440, 836, 442, 2112, 442, 2114,
1798+
442, 836, 442, 2114, 442, 2114, 442, 836, 442, 836, 442, 836, 440, 836,
1799+
442, 836, 442, 836, 442, 836, 442, 836, 440, 836, 442, 836, 440, 2114,
1800+
442, 2114, 442, 2114, 442, 836, 440, 838, 440, 836, 442, 836, 440, 838,
1801+
440, 836, 440, 836, 440, 836, 442, 2114, 440, 2116, 440, 2114, 442,
1802+
2114, 440, 2114, 440, 2114, 442, 2114, 442, 836, 440, 2114, 440, 836,
1803+
442, 2114, 442, 836, 440, 836, 442, 836, 442, 836, 440, 836, 440, 836,
1804+
440, 836, 440, 836, 440, 836, 440, 836, 440, 2114, 442, 836, 440, 2114,
1805+
442, 836, 440, 2114, 442, 836, 440, 2116, 440, 836, 440, 836, 440, 836,
1806+
440, 836, 442, 836, 440, 2114, 442
1807+
},
1808+
kArgoBits,
1809+
std::vector<uint8_t> { 0xAC, 0xF5, 0x10, 0xC5, 0x06, 0xE0, 0x00, 0x7F,
1810+
0x05, 0xA0, 0x0A, 0x02 },
1811+
"Model: 1 (WREM2), Power: On, Mode: 2 (Auto), Fan: 0 (Auto), Temp: 24C, "
1812+
"Sensor Temp: 26C, Max: Off, IFeel: On, Night: Off",
17681813
argo_ac_remote_model_t::SAC_WREM2)),
17691814
[](const testing::TestParamInfo<ArgoE2ETestParam>& info) {
17701815
return irutils::modelToStr(decode_type_t::ARGO, info.param.expectedModel)

0 commit comments

Comments
 (0)