learnlytics-go/templ/lsp/protocol/util_test.go
2025-03-20 12:35:13 +01:00

34 lines
542 B
Go

// SPDX-FileCopyrightText: 2020 The Go Language Server Authors
// SPDX-License-Identifier: BSD-3-Clause
package protocol
import (
"testing"
)
func TestNewVersion(t *testing.T) {
t.Parallel()
tests := []struct {
name string
i int32
}{
{
name: "Valid",
i: 5000,
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
want := NewVersion(tt.i)
if got := NewVersion(tt.i); *got != *want {
t.Errorf("NewVersion(%v) = %v, want %v", tt.i, *got, *want)
}
})
}
}