diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-07 17:42:26 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-07 17:42:26 -0500 |
commit | 7df767996b0b8d7daab32cf43585a97437261df8 (patch) | |
tree | 08720b9b60f216ffe2b2a6f2001e618e773f536d /light_test.go | |
parent | d3c0bdfa560e4200ed9c4ff4b80dec491afc0e5c (diff) |
Added light.Toggle func and documentation for On, Off, Toggle.
Diffstat (limited to 'light_test.go')
-rw-r--r-- | light_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/light_test.go b/light_test.go index c9a16a5..6c85eff 100644 --- a/light_test.go +++ b/light_test.go @@ -27,4 +27,8 @@ func TestSetLightState(t *testing.T) { selectedLight.TurnOff() time.Sleep(time.Second) selectedLight.TurnOn() + time.Sleep(time.Second) + selectedLight.Toggle() + time.Sleep(time.Second) + selectedLight.Toggle() } |