-
Notifications
You must be signed in to change notification settings - Fork 83
Description
I took the challenge:
listOnly3rdAnd4thCountry
Lists are 0 based thus the 3rd item is at index 2 yet the matching test expects index 3 and 4.
getCurrencyUsdIfNotFound
The expected format for the default value should be defined upfront, I thought the default response should be "Usd" but the test expects "Usd (Default)"
isPopulationMoreThan1Million
The method name doesn't indicate that the user should check if all countries in the list have more than 1M population, the Single<Boolean> result type may also indicate to check if any of the countries is over 1M.
rx_ListPopulationMoreThanOneMillion_FutureTask
It is reasonable to expect that when the user sees Future or FutureTask he/she will use fromFuture(Future, Scheduler) to make sure any potential blocking on Future.get() doesn't block the subscribing thread. The test is not ready for this and may fail the test.
rx_CountryNameInCapitalsWithNPE
RxJava 2 is largely a non-null library and nothing indicates the Country.name may be null. In addition, the test expects a particulare string to be returned for the null name.