Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 0f8a8f4

Browse files
Test characters with 4 bytes mixed with single bytes
1 parent 30494c6 commit 0f8a8f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/org/jscookie/test/unit/CookiesEncodingTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public void character_with_4_bytes_in_name() {
5353
Mockito.verify( response ).addHeader( "Set-Cookie", "c=%F0%A9%B8%BD; Path=/" );
5454
}
5555

56+
@Test
57+
public void character_with_4_bytes_mixed_with_single_bytes() {
58+
cookies.set( "c", "a𩸽b" );
59+
Mockito.verify( response ).addHeader( "Set-Cookie", "c=a%F0%A9%B8%BDb; Path=/" );
60+
}
61+
5662
@Test
5763
public void characters_allowed_in_cookie_value() {
5864
cookies.set( "c", "/:<=>?@[]{}" );

0 commit comments

Comments
 (0)