We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ebc8b5 commit 7ac7bbeCopy full SHA for 7ac7bbe
tests/objectbox-java-test/src/test/java/io/objectbox/Utf8Test.java
@@ -14,12 +14,12 @@
14
public class Utf8Test extends AbstractObjectBoxTest {
15
16
// U+1F600, U+1F601, U+1F602
17
- private static final String TEST_STRING = "😀😃😂";
+ private static final String TEST_STRING = "😀😃😂 Hello";
18
19
@Test
20
public void putGetAndQuery_works() {
21
// Java stores UTF-16 internally (2 chars per emoji)
22
- assertEquals(3 * 2, TEST_STRING.length());
+ assertEquals(3 * 2 + 6, TEST_STRING.length());
23
24
// Put
25
TestEntity put = putTestEntity(TEST_STRING, 1);
0 commit comments