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.
|
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()
|
|
}
|
|
}
|