mirror of
https://github.com/1f349/tulip.git
synced 2024-11-14 15:51:40 +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])
|
|
}
|