package zset
import (
"testing"
)
func TestZset(t *testing.T) {
z := NewZset()
z.Add(3.4, "sh600600")
z.Add(3.3, "sh600600")
z.Add(7.7, "sh600601")
z.Add(6.6, "sh600602")
z.Add(5.5, "sh600603")
z.Add(2.2, "sh600604")
z.Add(8.8, "sh600605")
z.Add(9.9, "sh600606")
z.Add(23.23, "sh600607")
z.Add(6.6, "sh600608")
z.Add(6.1, "sh6006010")
z.Add(6.62, "sh6006011")
z.Add(6.63, "sh6006012")
z.Add(6.67, "sh600616")
z.Add(6.68, "sh600615")
z.Add(6.69, "sh600618")
z.Add(6.64, "sh6006013")
z.Add(6.65, "sh600614")
z.Add(6.66, "sh600615")
z.Add(6.1, "sh600602")
list := z.Range(0, 23)
for i := range list {
t.Log(list[i].Score(), list[i].Member())
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
gocommon/zset
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published