Files
houston/client/deploy_test.go

28 lines
411 B
Go
Raw Normal View History

2023-10-24 20:08:48 +09:00
package client
import (
2023-10-24 20:57:41 +09:00
"fmt"
2023-10-24 20:08:48 +09:00
"testing"
)
2023-10-24 20:57:41 +09:00
func pof2(x int64) (out int64) {
out = 1
org := x
for (x >> 1) > 0 {
out = out << 1
x = x >> 1
}
if org > out {
out = out << 1
}
return
}
2023-10-24 20:08:48 +09:00
func TestDownload(t *testing.T) {
2023-10-24 20:57:41 +09:00
//download(".", "https://kdcc.action2quare.com/houston/_deploys/game/0.18.186.1/game.zip", "", nil)
fmt.Println(pof2(1023))
fmt.Println(pof2(1024))
fmt.Println(pof2(1025))
2023-10-24 20:08:48 +09:00
}