package output import "testing" func TestSafePathName(t *testing.T) { got := SafePathName(`P1000: PEMBROKE OAK / NATURAL`) want := "P1000_PEMBROKE_OAK_NATURAL" if got != want { t.Fatalf("SafePathName() = %q, want %q", got, want) } }