This is an example of TDD with spock framework and kotlin implementation
We want to implement a function that should return the list of the prime factors of a given number.
For example: applyFunction(0) >> [] applyFunction(1) >> [] applyFunction(2) >> [] applyFunction(4) >> [2]
- JDK 8
- Git
git clone https://github.com/fuedacode/prime-number-factors.git
cd prime-number-factors
../gradlew