mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Add tests for StringsToInt64s() & Int64sToStrings()
This commit is contained in:
		| @@ -16,6 +16,7 @@ import ( | ||||
| 	"html/template" | ||||
| 	"math" | ||||
| 	"net/http" | ||||
| 	"strconv" | ||||
| 	"strings" | ||||
| 	"time" | ||||
| 	"unicode" | ||||
| @@ -491,7 +492,7 @@ func StringsToInt64s(strs []string) []int64 { | ||||
| func Int64sToStrings(ints []int64) []string { | ||||
| 	strs := make([]string, len(ints)) | ||||
| 	for i := range ints { | ||||
| 		strs[i] = com.ToStr(ints[i]) | ||||
| 		strs[i] = strconv.FormatInt(ints[i], 10) | ||||
| 	} | ||||
| 	return strs | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user