xx_test.go 923 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package main
  2. import (
  3. util "app.yhyue.com/data_processing/common_utils"
  4. "testing"
  5. )
  6. func TestMethod(t *testing.T) {
  7. initSeg()
  8. InitEs()
  9. //util.Debug(Method("万宁市城南路市政道路高低压电力线路改造工程"))
  10. //wds, query := Method1("1#、2#厂房扩建项目")
  11. //util.Debug(wds)
  12. //util.Debug(query)
  13. //binfo := Es.GetNoLimit("projectset", query)
  14. //if binfo != nil && len(*binfo) > 0 {
  15. // util.Debug(len(*binfo))
  16. //}
  17. Method3(map[string]interface{}{"projectname": "万宁市城南路市政道路高低压电力线路改造工程"})
  18. }
  19. func TestMethod2(t *testing.T) {
  20. util.Debug(regDel.ReplaceAllString("12厂房扩建项目", ""))
  21. util.Debug(filterMethod(map[string]interface{}{"projectname": "1#、2#厂房扩建项目"}))
  22. util.Debug(combArr([]string{
  23. "崇仁县",
  24. "石庄",
  25. "乡",
  26. "2022",
  27. "年",
  28. "新",
  29. "农村",
  30. "建设工程",
  31. "石庄村",
  32. "程坊",
  33. "组"}))
  34. }