Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvarogarcia7/rationals-kata-clojure
https://github.com/alvarogarcia7/rationals-kata-clojure
clj clojure kata midje rationals-kata
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alvarogarcia7/rationals-kata-clojure
- Owner: alvarogarcia7
- Created: 2015-02-12T02:51:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-12T03:59:01.000Z (over 9 years ago)
- Last Synced: 2024-09-25T19:35:08.987Z (8 days ago)
- Topics: clj, clojure, kata, midje, rationals-kata
- Language: Clojure
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rationals-kata
Executing the rationals kata as proposed by @trikitrok at the [Scala Bcn Meetup](http://www.meetup.com/Scala-Developers-Barcelona/events/219559165/) but in clojureDescription: https://gist.github.com/trikitrok/0652d91c85cd5a5305c4
(local copy below)
# Rationals addition kata
We'll program the addition of two rationals using TDD.
Suggested API for the method (in Java):
public Rational add(Rational rational);Constraints:
* Rationals must be immutable after creation.
* They have to be stored in reduced form, e.g., 2/4 would be stored as 1/2, check [greatest common divisor computation](http://en.wikipedia.org/wiki/Euclidean_algorithm#Implementations)# Technical help
## Light Table
go to project.clj, control+space (in mac), choose instarepl, wait for to finish connecting. It might fail
go to test/\*clj and command+enter to execute expressions / facts