mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Backend: Move string shortening functions to /pkg/txt/clip
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -368,7 +368,7 @@ func TestFile_SetProjection(t *testing.T) {
|
||||
p := projection.New(" 幸福 Hanzi are logograms developed for the writing of Chinese! Expressions in an index may not ...!")
|
||||
m.SetProjection(p.String())
|
||||
assert.Equal(t, p.String(), m.FileProjection)
|
||||
assert.GreaterOrEqual(t, clean.ClipType, len(m.FileProjection))
|
||||
assert.GreaterOrEqual(t, clean.LengthType, len(m.FileProjection))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user