tulip/utils/zoneinfo_test.go

16 lines
384 B
Go
Raw Permalink Normal View History

2024-01-29 10:44:45 +00:00
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])
}