Show not= and collection equality.

This commit is contained in:
Colin Jones
2010-11-04 08:01:34 -05:00
parent fa90fc7e86
commit 47d4342314
3 changed files with 12 additions and 4 deletions

View File

@@ -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 __))

View File

@@ -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)))