mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-10 03:00:23 +08:00
15 lines
276 B
Go
15 lines
276 B
Go
package classify
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestLabelRules_Find(t *testing.T) {
|
|
result := rules.Find("cat")
|
|
assert.Equal(t, "cat", result.Label)
|
|
assert.Equal(t, "animal", result.Categories[0])
|
|
assert.Equal(t, 5, result.Priority)
|
|
}
|