mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
16 lines
304 B
Go
16 lines
304 B
Go
package tz
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestPosition(t *testing.T) {
|
|
t.Run("Empty", func(t *testing.T) {
|
|
assert.Equal(t, "", Position(0, 0))
|
|
})
|
|
t.Run("EuropeBerlin", func(t *testing.T) {
|
|
assert.Equal(t, "Europe/Berlin", Position(52.472833, 13.407500))
|
|
})
|
|
}
|