mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 06:27:47 +00:00
15 lines
216 B
Go
15 lines
216 B
Go
package net
|
|
|
|
import (
|
|
"testing"
|
|
|
|
qt "github.com/frankban/quicktest"
|
|
)
|
|
|
|
func TestIPAddressString(t *testing.T) {
|
|
c := qt.New(t)
|
|
ipaddr := ParseIP("127.0.0.1")
|
|
|
|
c.Assert(ipaddr.String(), qt.Equals, "127.0.0.1")
|
|
}
|