mirror of
https://github.com/ollama/ollama.git
synced 2026-04-27 19:25:55 +02:00
x/model: add roundtrip for String test
This commit is contained in:
@@ -49,5 +49,10 @@ func TestDigestString(t *testing.T) {
|
||||
if got != want {
|
||||
t.Errorf("ParseDigest(%q).String() = %q; want %q", s, got, want)
|
||||
}
|
||||
|
||||
got = ParseDigest(s).String()
|
||||
if got != want {
|
||||
t.Errorf("roundtrip ParseDigest(%q).String() = %q; want %q", s, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user