1 /* 2 * Copyright 2017-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 package kotlinx.serialization.features 6 7 import kotlinx.serialization.builtins.serializer 8 import kotlinx.serialization.json.JsonTestBase 9 import kotlin.test.Test 10 11 12 class EmojiTest : JsonTestBase() { 13 14 @Test testEmojiStringnull15 fun testEmojiString() { 16 assertJsonFormAndRestored( 17 String.serializer(), 18 "\uD83C\uDF34", 19 "\"\uD83C\uDF34\"" 20 ) 21 } 22 } 23