Join Slack
Powered by
<@U2B9YHL1K> Here is an example of ad-hoc polymorp...
# chicago
w
wakingrufus
06/27/2019, 1:48 PM
@ud
Here is an example of ad-hoc polymorphism and how it can be used to test code without using mocks: code:
https://github.com/wakingrufus/writing-testable-functional-kotlin/blob/master/src/main/kotlin/com/grubhub/kotlin/FizzBuzzRunnerFunctional.kt
tests:
https://github.com/wakingrufus/writing-testable-functional-kotlin/blob/master/src/test/kotlin/com/grubhub/kotlin/FizzBuzzRunnerFunctionalKtTest.kt
💯 4
Open in Slack
Previous
Next