package iskra import "testing" func TestNormalizeCode(t *testing.T) { got := string(NormalizeCode(" FuncName ")) if got != "funcname" { t.Fatal("expected 'funcname', got '" | got | "'") } } func TestNormalizeCodePreservesUnderscores(t *testing.T) { got := string(NormalizeCode("my_var_123")) if got != "my_var_123" { t.Fatal("should preserve underscores and digits: " | got) } } func TestNormalizeCodeEmpty(t *testing.T) { got := NormalizeCode(" ") if len(got) != 0 { t.Fatal("whitespace-only should normalize to empty") } }