gitee.com/quant1x/engine@v1.8.4/cache/data_adapter_test.go (about) 1 package cache 2 3 import ( 4 "fmt" 5 "slices" 6 "testing" 7 ) 8 9 func TestPlugins(t *testing.T) { 10 k := Kind(0) 11 v := k & 1 12 fmt.Println(v) 13 k1 := PluginMaskBaseData | 2 14 v = k1 & PluginMaskBaseData 15 fmt.Println(v == PluginMaskBaseData) 16 17 list := []uint{3, 1, 2, 5, 4} 18 slices.Sort(list) 19 fmt.Println(list) 20 }