I'm trying to write a test to verify that a smiley face is recognized as emoji: which is \uD83D
and \uDE00
Is there a way to represent this in Kotlin? If I use a literal it tells me 'Too many characters in a character literal'. The isEmoji method expects a Char so I cannot pass a string and to the best of my knowledge there is no way to instantiate a Char unless I know the exact numeric value
What is the closest I can get to this type of statement:
assertTrue(isEmoji(''))
for testing
fun isEmoji(currentChar: Char): Boolean