Include new equality rules for floats.
This commit is contained in:
@@ -6,4 +6,13 @@
|
||||
(= __ (+ 1 1))
|
||||
|
||||
"You can test equality of many things"
|
||||
(= (+ 3 4) __ (+ 2 __)))
|
||||
(= (+ 3 4) __ (+ 2 __))
|
||||
|
||||
"Some things may appear different, but be the same"
|
||||
(= 2 2/1 __)
|
||||
|
||||
"You cannot generally float to heavens of integers"
|
||||
(= __ (= 2 2.0))
|
||||
|
||||
"But a looser equality is also possible"
|
||||
(== 2.0 2 __))
|
||||
|
Reference in New Issue
Block a user