forked from forgejo/forgejo
Add tests for StringsToInt64s() & Int64sToStrings()
This commit is contained in:
parent
b00d82d679
commit
d417aedcfa
2 changed files with 45 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue