summaryrefslogtreecommitdiff
path: root/time/time_test.go
blob: b464ba126709ac967d68b71c7f89091854f4b659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package time

import (
	"testing"
	"time"

	"github.com/stretchr/testify/assert"
)

func TestZoneFuncs(t *testing.T) {
	name, offset := time.Now().Zone()
	assert.Equal(t, name, ZoneName())
	assert.Equal(t, offset, ZoneOffset())
}