diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-09-23 17:58:43 -0400 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-09-23 17:58:43 -0400 |
commit | 541bfc66cb1dd94c9ab4d7089adc0f31a77799d4 (patch) | |
tree | c4503b98f8c3b8283b79ede213c4e31d108f4762 /light_test.go | |
parent | 0b48413834389d48e4ce42b1d79157c5ca825ff5 (diff) |
Fixed issue #1 invalid types for hue and saturation in LightState struct.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/light_test.go b/light_test.go index 57235e1..a3e1380 100644 --- a/light_test.go +++ b/light_test.go @@ -47,23 +47,23 @@ func TestSetLightState(t *testing.T) { selectedLight.Dim(20) selectedLight.Brighten(20) - // selectedLight.SetColor(RED) - // time.Sleep(time.Second) - // selectedLight.SetColor(YELLOW) - // time.Sleep(time.Second) - // selectedLight.SetColor(ORANGE) - // time.Sleep(time.Second) - // selectedLight.SetColor(GREEN) - // time.Sleep(time.Second) - // selectedLight.SetColor(CYAN) - // time.Sleep(time.Second) - // selectedLight.SetColor(BLUE) - // time.Sleep(time.Second) - // selectedLight.SetColor(PURPLE) - // time.Sleep(time.Second) - // selectedLight.SetColor(PINK) - // time.Sleep(time.Second) - // selectedLight.SetColor(WHITE) + selectedLight.SetColor(hue.RED) + time.Sleep(time.Second) + selectedLight.SetColor(hue.YELLOW) + time.Sleep(time.Second) + selectedLight.SetColor(hue.ORANGE) + time.Sleep(time.Second) + selectedLight.SetColor(hue.GREEN) + time.Sleep(time.Second) + selectedLight.SetColor(hue.CYAN) + time.Sleep(time.Second) + selectedLight.SetColor(hue.BLUE) + time.Sleep(time.Second) + selectedLight.SetColor(hue.PURPLE) + time.Sleep(time.Second) + selectedLight.SetColor(hue.PINK) + time.Sleep(time.Second) + selectedLight.SetColor(hue.WHITE) // _ := selectedLight.Delete() } |