Skip to content

Commit 61b325e

Browse files
gharveymnHunsupJung
authored andcommitted
Document test reasoning
Signed-off-by: Gene Harvey <[email protected]>
1 parent 2176cdd commit 61b325e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/SmartThings/matter-rvc/src/test/test_matter_rvc.lua

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ local IDLE_MODE = { label = "Idle Mode", mode = 0, mode_tags = { modeTag
9090
local CLEANING_MODE = { label = "Cleaning Mode", mode = 2, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 16385 }) } }
9191
local MAPPING_MODE = { label = "Mapping Mode", mode = 4, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 16386 }) } }
9292

93+
-- The `mode` fields for these are purposely out-of-order, so that we can make sure we aren't reliant on ordering.
9394
local RUN_MODES = {
9495
MAPPING_MODE,
9596
IDLE_MODE,
@@ -101,6 +102,7 @@ local RUN_MODE_LABELS = { RUN_MODES[1].label, RUN_MODES[2].label, RUN_MODES[3].l
101102
local CLEAN_MODE_1 = { label = "Clean Mode 1", mode = 0, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 1 }) } }
102103
local CLEAN_MODE_2 = { label = "Clean Mode 2", mode = 1, mode_tags = { modeTagStruct({ mfg_code = 0x1E1E, value = 2 }) } }
103104

105+
-- The `mode` fields for these are purposely out-of-order, so that we can make sure we aren't reliant on ordering.
104106
local CLEAN_MODES = {
105107
CLEAN_MODE_2,
106108
CLEAN_MODE_1,

0 commit comments

Comments
 (0)