You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspired by a comment on this SO about string-reversal in Python:
For example, "🇬🇧"[::-1] yields "🇧🇬".
I thought I'd try your Reverse() func:
assert.Equal(t, Reverse("🇬🇧"), "🇬🇧")
and I got:
Error Trace: xstrings_test.go:86
Error: Not equal:
expected: "🇧🇬"
actual : "🇬🇧"
Test: TestReverse
Flags are special in that they are specific ordering of two letters to designate the ISO-3166 country code, which for some systems and fonts is rendered as that country's flag1:
Regional indicator symbols
These characters can be used in pairs to represent regional
codes. In some emoji implementations, certain pairs may be
recognized and displayed by alternate means; for instance,
an implementation might recognize F + R and display this
combination with a symbol representing the flag of France
Inspired by a comment on this SO about string-reversal in Python:
I thought I'd try your Reverse() func:
and I got:
Flags are special in that they are specific ordering of two letters to designate the ISO-3166 country code, which for some systems and fonts is rendered as that country's flag1:
Footnotes
https://www.unicode.org/charts/PDF/U1F100.pdf ↩
The text was updated successfully, but these errors were encountered: