mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 15:52:42 +01:00
Add test for Int64sToMap()
This commit is contained in:
parent
d417aedcfa
commit
4235fff9ee
1 changed files with 8 additions and 1 deletions
|
@ -153,7 +153,14 @@ func TestInt64sToStrings(t *testing.T) {
|
|||
)
|
||||
}
|
||||
|
||||
// TODO: Int64sToMap()
|
||||
func TestInt64sToMap(t *testing.T) {
|
||||
assert.Equal(t, map[int64]bool{}, Int64sToMap([]int64{}))
|
||||
assert.Equal(t,
|
||||
map[int64]bool{1: true, 4: true, 16: true},
|
||||
Int64sToMap([]int64{1, 4, 16}),
|
||||
)
|
||||
}
|
||||
|
||||
// TODO: IsLetter()
|
||||
// TODO: IsTextFile()
|
||||
// TODO: IsImageFile()
|
||||
|
|
Loading…
Reference in a new issue