mirror of
https://github.com/1f349/tulip.git
synced 2024-11-15 00:01:45 +00:00
16 lines
384 B
Go
16 lines
384 B
Go
package utils
|
|
|
|
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])
|
|
}
|