1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

GO-4414 Allow user to choose a primary language (#2172)

This commit is contained in:
Mikhail 2025-03-03 23:51:25 +01:00 committed by GitHub
parent b243f1f4e2
commit 19e2abb130
Signed by: github
GPG key ID: B5690EEEBB952194
25 changed files with 1701 additions and 1375 deletions

View file

@ -32,19 +32,31 @@ func TestTruncateEllipsized(t *testing.T) {
expected: " ",
},
{
name: "Divine emojie not fit",
name: "Divine emoji not fit",
text: "🌍",
length: 1,
expected: " …",
},
{
name: "Divine emojies fit",
name: "Big emoji fit",
text: "👨‍👩‍👧‍👦",
length: 11,
expected: "👨‍👩‍👧‍👦",
},
{
name: "Big emoji not fit",
text: "👨‍👩‍👧‍👦",
length: 10,
expected: "👨\u200d👩\u200d👧 …",
},
{
name: "Divine emoji fit",
text: "🌍",
length: 4,
expected: "🌍",
},
{
name: "Text with divine emojies not fit",
name: "Text with divine emoji not fit",
text: "Hello 🌍",
length: 7,
expected: "Hello …",