Files
wehub-resource-sync 95f0813436
build / build (push) Failing after 0s
nightly / nightly (push) Failing after 0s
build / snapshot (push) Failing after 0s
lint / lint (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 13:02:37 +08:00

18 lines
313 B
Go

package token
import "testing"
func TestToCamel(t *testing.T) {
// simple case
res := ToCamel("SIMPLE")
if res != "Simple" {
t.Errorf("expected Simple, got %s", res)
}
// multiple words
res = ToCamel("MULTIPLE_WORDS")
if res != "MultipleWords" {
t.Errorf("expected MultipleWords, got %s", res)
}
}