github.com/MetalBlockchain/metalgo@v1.11.9/version/version_test.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package version 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/require" 10 ) 11 12 func TestSemanticString(t *testing.T) { 13 v := Semantic{ 14 Major: 1, 15 Minor: 2, 16 Patch: 3, 17 } 18 19 require.Equal(t, "v1.2.3", v.String()) 20 }