adding test case for showing html entities are processed

This commit is contained in:
Adam Brown 2022-07-07 13:54:42 +01:00
parent cfb1e09d64
commit ead8cec4a6

View File

@ -71,5 +71,12 @@ class EventHtmlRendererTest {
result shouldBeEqualTo "[code][italic]italic[/italic] [bold]bold[/bold][/code]"
}
@Test
fun processesHtmlEntities() {
val result = """& < > ' """".renderAsTestSpan()
result shouldBeEqualTo """& < > ' """"
}
private fun String.renderAsTestSpan() = renderer.render(this).toSpannable().toTestSpan()
}