github.com/tursom/GoCollections@v0.3.10/collections/Hash_test.go (about) 1 /* 2 * Copyright (c) 2022 tursom. All rights reserved. 3 * Use of this source code is governed by a GPL-3 4 * license that can be found in the LICENSE file. 5 */ 6 7 package collections 8 9 import ( 10 "fmt" 11 "testing" 12 13 "github.com/tursom/GoCollections/lang" 14 ) 15 16 func TestHashIterable(t *testing.T) { 17 list := NewArrayList[lang.String]() 18 for i := 0; i < 201; i++ { 19 list.Add(lang.Int(i).ToString()) 20 } 21 fmt.Println(HashIterable[lang.String](list)) 22 }