photoprism/pkg/txt/quote_test.go
Michael Mayer 2032b40f2b Backend: Code clean-up
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-03 18:00:50 +02:00

16 lines
348 B
Go

package txt
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestQuote(t *testing.T) {
t.Run("The quick brown fox.", func(t *testing.T) {
assert.Equal(t, "“The quick brown fox.”", Quote("The quick brown fox."))
})
t.Run("filename.txt", func(t *testing.T) {
assert.Equal(t, "filename.txt", Quote("filename.txt"))
})
}