mirror of
https://github.com/1f349/lavender.git
synced 2024-12-22 23:54:10 +00:00
16 lines
384 B
Go
16 lines
384 B
Go
package lists
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestListZoneInfo(t *testing.T) {
|
|
zoneinfos := ListZoneInfo()
|
|
assert.True(t, len(zoneinfos) > 4)
|
|
assert.Equal(t, "Africa/Abidjan", zoneinfos[0])
|
|
assert.Equal(t, "Africa/Accra", zoneinfos[1])
|
|
assert.Equal(t, "WET", zoneinfos[len(zoneinfos)-2])
|
|
assert.Equal(t, "Zulu", zoneinfos[len(zoneinfos)-1])
|
|
}
|