aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-02-01 22:18:31 +0300
committerGravatar Vitaly Takmazov2023-02-01 22:19:14 +0300
commit9b04009a35cf6e9cc4874aaa95ff2ca9708019ed (patch)
tree843a1c435509674e80b9aca84874052e26a0582f /src/test/java/com/juick/server/tests
parent57222853c90b0ffc4b800adeeddc289d58ee0a25 (diff)
Fix emoji collation issue on MariaDB
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 4cbc30b5..3c37e846 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2640,4 +2640,12 @@ public class ServerTests {
msg = messagesService.getMessage(freefd.getUid(), mid).orElseThrow();
assertThat(msg.isSubscribed(), is(false));
}
+ @Test
+ @Transactional
+ public void emojisShouldCollateCorrectly() {
+ var first = "\uD83E\uDD84";
+ var second = "\uD83E\uDD5C";
+ assertThat(tagService.getTag(first, true).getName(), is(first));
+ assertThat(tagService.getTag(second, true).getName(), is(second));
+ }
}