Unverified Commit a751bc15 authored by Vignesh Skanda's avatar Vignesh Skanda Committed by GitHub
Browse files

llama: test case typo and readability improvements (#13078)

parent 5d31242f
......@@ -80,10 +80,10 @@ func TestIssue7978(t *testing.T) {
}
}
func TestSchemaToGrammer(t *testing.T) {
func TestSchemaToGrammar(t *testing.T) {
cases := []struct {
schema string
prefix []byte // nil is check as nil
prefix []byte // nil is checked as nil
}{
{`invalid`, nil},
......@@ -92,7 +92,7 @@ func TestSchemaToGrammer(t *testing.T) {
}
for _, c := range cases {
t.Run("x", func(t *testing.T) {
t.Run(c.schema, func(t *testing.T) {
g := SchemaToGrammar([]byte(c.schema))
if c.prefix == nil && g != nil {
t.Fatalf("grammar = %v, want nil", g)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment