golib/helper/text/direction_test.go

14 lines
265 B
Go
Raw Normal View History

2023-08-20 13:50:39 +08:00
package text
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestDirection_Modifier(t *testing.T) {
assert.Equal(t, "", Default.Modifier())
assert.Equal(t, "\u202a", LeftToRight.Modifier())
assert.Equal(t, "\u202b", RightToLeft.Modifier())
}