Skip to content

Commit

Permalink
Completed equalities koan
Browse files Browse the repository at this point in the history
  • Loading branch information
hgmnz committed Mar 19, 2012
1 parent b83e143 commit b3f4644
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/koans/equalities.clj
@@ -1,21 +1,21 @@
(meditations
"We shall contemplate truth by testing reality, via equality."
(= __ true)
(= true true)

"To understand reality, we must compare our expectations against reality."
(= __ (+ 1 1))
(= 2 (+ 1 1))

"You can test equality of many things"
(= (+ 3 4) __ (+ 2 __))
(= (+ 3 4) 7 (+ 2 5))

"Some things may appear different, but be the same"
(= 2 2/1 __)
(= 2 2/1 4/2)

"You cannot generally float to heavens of integers"
(= __ (= 2 2.0))
(= false (= 2 2.0))

"But a looser equality is also possible"
(== 2.0 2 __)
(== 2.0 2 2/1)

"When things cannot be equal, they must be different"
(not= :fill-in-the-blank __))
(not= :fill-in-the-blank :foo))

0 comments on commit b3f4644

Please sign in to comment.