This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns default.core-test | |
| (:use midje.sweet)) | |
| (defn initial-seed [width height] | |
| (let [board #{}] | |
| (into board (for [x (range width) | |
| y (range height)] | |
| {:x x :y y})))) | |
| (defn in-height-range[cell other-cell] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns calculator.core | |
| (:gen-class)) | |
| (def operators { "-" - "+" + "/" / "*" *}) | |
| (defn convert-to-number [value] | |
| (let [n (read-string value)] | |
| (if (number? n) n nil))) | |
| (defn read-operator [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class When_a_find_is_performed_using_a_magic_query : with_fresh_database | |
| { | |
| Because of = () => | |
| { | |
| dynamic contact = new Contact(); | |
| contact.FirstName = "Andy"; | |
| contact.Surname = "Stewart"; | |
| repository.Save(contact); | |
| dynamic contact2 = new Contact(); |
NewerOlder