2017-10-19 18:31:14 +08:00
|
|
|
package hs200
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2023-05-20 20:25:21 +08:00
|
|
|
"gobot.io/x/gobot/v2"
|
|
|
|
"gobot.io/x/gobot/v2/gobottest"
|
2017-10-19 18:31:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var _ gobot.Driver = (*Driver)(nil)
|
|
|
|
|
|
|
|
func TestHS200Driver(t *testing.T) {
|
|
|
|
d := NewDriver("127.0.0.1:8080", "127.0.0.1:9090")
|
|
|
|
|
|
|
|
gobottest.Assert(t, d.tcpaddress, "127.0.0.1:8080")
|
|
|
|
gobottest.Assert(t, d.udpaddress, "127.0.0.1:9090")
|
|
|
|
}
|