You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gdns/arguments_test.go

20 lines
168 B
Go

9 years ago
package main
import (
"testing"
)
func TestArgs(t *testing.T) {
var a ArgSrvs
(&a).Set("aa")
if len(a) != 1 {
t.Fail()
}
if a[0] != "aa" {
t.Fail()
}
}