en_test.go 911 B

123456789101112131415161718192021222324
  1. //go:build windows
  2. package yu_deflate
  3. import (
  4. "fmt"
  5. yu_file "gogs.qqck.cn/s/tools/file"
  6. "testing"
  7. )
  8. func TestDeflate(t *testing.T) {
  9. j_file := "E:\\work\\user\\golang\\go-tools\\hpsocket\\api_windows_x32.dll"
  10. fmt.Println(len(Deflate(yu_file.Get(j_file))))
  11. fmt.Println(yu_file.Set(j_file+".en", Deflate(yu_file.Get(j_file))))
  12. j_file = "E:\\work\\user\\golang\\go-tools\\hpsocket\\api_windows_x64.dll"
  13. fmt.Println(len(Deflate(yu_file.Get(j_file))))
  14. fmt.Println(yu_file.Set(j_file+".en", Deflate(yu_file.Get(j_file))))
  15. j_file = "E:\\work\\user\\golang\\go-tools\\curl\\api_windows_x32.dll"
  16. fmt.Println(len(Deflate(yu_file.Get(j_file))))
  17. fmt.Println(yu_file.Set(j_file+".en", Deflate(yu_file.Get(j_file))))
  18. j_file = "E:\\work\\user\\golang\\go-tools\\curl\\api_windows_x64.dll"
  19. fmt.Println(len(Deflate(yu_file.Get(j_file))))
  20. fmt.Println(yu_file.Set(j_file+".en", Deflate(yu_file.Get(j_file))))
  21. }