package be.kuleuven.howlongtobeat.hltb import be.kuleuven.howlongtobeat.cartridges.Cartridge import junit.framework.TestCase.assertNull import org.junit.Assert.assertEquals import org.junit.Test class HowLongToBeatResultParserTest { @Test fun parseWithEmptyStringReturnsNull() { val result = HowLongToBeatResultParser.parse("", Cartridge.UNKNOWN_CART) assertNull(result) } @Test fun parseWithRealResponseGrabsTitlesOfGamesAndConvertsToTodoItems() { val html = """

We Found 10 Games for "super mario land"