GoCollections/collections/Hash_test.go

23 lines
440 B
Go
Raw Normal View History

2022-11-25 18:19:33 +08:00
/*
* Copyright (c) 2022 tursom. All rights reserved.
* Use of this source code is governed by a GPL-3
* license that can be found in the LICENSE file.
*/
2022-03-23 10:15:18 +08:00
package collections
import (
"fmt"
"testing"
2022-11-25 18:19:33 +08:00
"github.com/tursom/GoCollections/lang"
2022-03-23 10:15:18 +08:00
)
func TestHashIterable(t *testing.T) {
list := NewArrayList[lang.String]()
for i := 0; i < 201; i++ {
list.Add(lang.Int(i).ToString())
}
fmt.Println(HashIterable[lang.String](list))
}