photoprism/pkg/time/tz/position_test.go
Michael Mayer b00dd133db Test: Use PascalCase names for all Go subtests in /pkg
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-02 15:03:47 +02:00

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))
})
}