column_test.go 360 B

1234567891011121314151617181920212223
  1. package main
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestTagBidding(t *testing.T) {
  7. data := map[string]interface{}{
  8. "toptype": "招标",
  9. "subtype": "招标",
  10. "buyerclass": "能源化工",
  11. "spidercode": "a_jyxxfbpt_gg",
  12. }
  13. rea := TagBidding(data)
  14. fmt.Println(rea)
  15. reb := calculateFlag(rea, columns)
  16. fmt.Println("reb", reb)
  17. //1000 0100 0001
  18. }