Show not= and collection equality.
This commit is contained in:
@@ -15,4 +15,7 @@
|
||||
(= __ (= 2 2.0))
|
||||
|
||||
"But a looser equality is also possible"
|
||||
(== 2.0 2 __))
|
||||
(== 2.0 2 __)
|
||||
|
||||
"When things cannot be equal, they must be different"
|
||||
(not= nil __))
|
||||
|
@@ -27,4 +27,7 @@
|
||||
(= __ (nth [:peanut :butter :and :jelly] 3))
|
||||
|
||||
"You can also slice a vector"
|
||||
(= __ (subvec [:peanut :butter :and :jelly] 1 3)))
|
||||
(= __ (subvec [:peanut :butter :and :jelly] 1 3))
|
||||
|
||||
"Equality with collections is in terms of values"
|
||||
(___ (list 1 2 3) (vector 1 2 3)))
|
||||
|
Reference in New Issue
Block a user