package Ġcom . dd ie hl . android . ht n . view . markdown Ċ Ċ import Ġandroid . text . Sp ann able StringBuilder Ċ import Ġandroidx . test . Instrumentation Registry Ċ import Ġorg . junit . Assert . assertTrue Ċ import Ġorg . junit . Test Ċ Ċ class ĠHtml Parser Tests Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtrim Trailing New Lines _ empty String _ no Crash () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcontext Ġ= ĠInstrument ation Registry . getTarget Context () ĊĊĠĠĠĠĠĠĠ Ġval Ġhtml Parser Ġ= ĠHtml Parser ( context ) ĊĠĠĠĠĠĠĠ Ġval Ġsp ann able StringBuilder Ġ= ĠSp ann able StringBuilder ("") ĊĠĠĠĠĠĠĠ Ġhtml Parser . trim Trailing New Lines ( span nable StringBuilder ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( span nable StringBuilder . isEmpty ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtrim Trailing New Lines _ newline Only _ no Crash () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcontext Ġ= ĠInstrument ation Registry . getTarget Context () ĊĊĠĠĠĠĠĠĠ Ġval Ġhtml Parser Ġ= ĠHtml Parser ( context ) ĊĠĠĠĠĠĠĠ Ġval Ġsp ann able StringBuilder Ġ= ĠSp ann able StringBuilder ("\ n \ n \ n ") ĊĠĠĠĠĠĠĠ Ġhtml Parser . trim Trailing New Lines ( span nable StringBuilder ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( span nable StringBuilder . isEmpty ()) ĊĠĠĠ Ġ} Ċ } Ċ