Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
a751bc15
Unverified
Commit
a751bc15
authored
Nov 16, 2025
by
Vignesh Skanda
Committed by
GitHub
Nov 15, 2025
Browse files
llama: test case typo and readability improvements (#13078)
parent
5d31242f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
llama/llama_test.go
llama/llama_test.go
+3
-3
No files found.
llama/llama_test.go
View file @
a751bc15
...
@@ -80,10 +80,10 @@ func TestIssue7978(t *testing.T) {
...
@@ -80,10 +80,10 @@ func TestIssue7978(t *testing.T) {
}
}
}
}
func
TestSchemaToGramm
e
r
(
t
*
testing
.
T
)
{
func
TestSchemaToGramm
a
r
(
t
*
testing
.
T
)
{
cases
:=
[]
struct
{
cases
:=
[]
struct
{
schema
string
schema
string
prefix
[]
byte
// nil is check as nil
prefix
[]
byte
// nil is check
ed
as nil
}{
}{
{
`invalid`
,
nil
},
{
`invalid`
,
nil
},
...
@@ -92,7 +92,7 @@ func TestSchemaToGrammer(t *testing.T) {
...
@@ -92,7 +92,7 @@ func TestSchemaToGrammer(t *testing.T) {
}
}
for
_
,
c
:=
range
cases
{
for
_
,
c
:=
range
cases
{
t
.
Run
(
"x"
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
c
.
schema
,
func
(
t
*
testing
.
T
)
{
g
:=
SchemaToGrammar
([]
byte
(
c
.
schema
))
g
:=
SchemaToGrammar
([]
byte
(
c
.
schema
))
if
c
.
prefix
==
nil
&&
g
!=
nil
{
if
c
.
prefix
==
nil
&&
g
!=
nil
{
t
.
Fatalf
(
"grammar = %v, want nil"
,
g
)
t
.
Fatalf
(
"grammar = %v, want nil"
,
g
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment