realize/realize/server_test.go
2018-01-09 01:40:53 +01:00

19 lines
275 B
Go

package realize
import (
"runtime"
"testing"
)
func TestServer_Open(t *testing.T) {
cmd := map[string]string{
"windows": "start",
"darwin": "open",
"linux": "xdg-open",
}
key := runtime.GOOS
if _, ok := cmd[key]; !ok {
t.Error("System not supported")
}
}