-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kata feedback #1
Comments
Tests renaming and cleanups; NPE test case removed; TestScheduler for Future case added
Thanks a lot for the feedback @akarnokd. |
|
Thanks @akarnokd, |
Hi @sergiiz I am going to use this thread instead of opening a new one. Thank you very much for taking the time to create this, it was useful exercise. Thank you again! |
Thank you @vnickolov! would love to have your update to be merged to this repo! |
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
orFutureTask
he/she will usefromFuture(Future, Scheduler)
to make sure any potential blocking onFuture.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 benull
. In addition, the test expects a particulare string to be returned for thenull
name.The text was updated successfully, but these errors were encountered: