go-hep.org/x/hep@v0.38.1/groot/rbase/string_test.go (about) 1 // Copyright ©2024 The go-hep Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package rbase_test 6 7 import ( 8 "testing" 9 10 "go-hep.org/x/hep/groot/rbase" 11 ) 12 13 func TestStringVersion(t *testing.T) { 14 var ( 15 str = rbase.NewString("string") 16 got = str.RVersion() 17 want int16 18 ) 19 if got != want { 20 t.Fatalf("invalid streamer version: got=%d, want=%d", got, want) 21 } 22 }