16 lines
355 B
Go
16 lines
355 B
Go
package codit
|
|
|
|
import "testing"
|
|
|
|
func TestServerIdHelpers(t *testing.T) {
|
|
if NormalizeServerId("Co-Dit") != "co-dit" {
|
|
t.Fatalf("identifier normalization failed")
|
|
}
|
|
if EnvPrefixFromServerId("co-dit") != "CO_DIT_" {
|
|
t.Fatalf("env prefix conversion failed")
|
|
}
|
|
if TitleFromServerId("co-dit") != "Co Dit" {
|
|
t.Fatalf("title conversion failed")
|
|
}
|
|
}
|