Browse Source

Add test for Int64sToMap()

tags/v1.21.12.1
Matthias Loibl 9 years ago
parent
commit
4235fff9ee
No known key found for this signature in database GPG Key ID: B1C7DF661ABB2C1A
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      modules/base/tool_test.go

+ 8
- 1
modules/base/tool_test.go View File

@@ -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…
Cancel
Save