Skip to content

fruedaCode/prime-numbers-factors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prime numbers factors generator TDD

This is an example of TDD with spock framework and kotlin implementation

What we want to do?

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]

Requirements

  • JDK 8
  • Git

Get started

git clone https://github.com/fuedacode/prime-number-factors.git
cd prime-number-factors
../gradlew

About

TDD kotlin + spock of prime numbers factors generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published