GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — websocket-proxy/main_test.go at main · PastureStack/websocket-proxy Expand file tree/ Copy pathmain_test.goMore file actions 27 lines (23 loc) · 740 Bytes / Copy pathmain_test.goFile metadata and controls27 lines (23 loc) · 740 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 package main import ( "regexp" "testing" ) func TestTraditionalChineseOperatorMessage(t *testing.T) { if got := operatorMessage("zh-TW", "start"); got != "正在啟動 PastureStack WebSocket 代理服務。" { t.Fatalf("unexpected zh-TW message: %q", got) } } func TestVersionRequested(t *testing.T) { if !versionRequested([]string{"--version"}) { t.Fatal("expected --version to be recognized") } if versionRequested([]string{"--listen-address", ":8080"}) { t.Fatal("ordinary arguments must not trigger version output") } } func TestDefaultVersionIsNumeric(t *testing.T) { if !regexp.MustCompile(`^[0-9]+\.[0-9]+\.[0-9]+$`).MatchString(VERSION) { t.Fatalf("default build version must be numeric, got %q", VERSION) } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |