summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2017-04-17 08:42:42 +0200
committerDamien Cassou <damien@cassou.me>2017-04-17 11:30:28 +0200
commit77f0c74537dd4f5d80e40f64673ff8b671a7c762 (patch)
tree2663e78fcb1b43527db099410a8cdab4edf71fea /docs
parentf60ed2a563b3867a98ab41290b46572789c43272 (diff)
Fix :to-have-same-items-as (fix #80)
Diffstat (limited to 'docs')
-rw-r--r--docs/writing-tests.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/writing-tests.md b/docs/writing-tests.md
index b2caafb..8b965cd 100644
--- a/docs/writing-tests.md
+++ b/docs/writing-tests.md
@@ -106,11 +106,14 @@ that are not included below.
(it "The :to-have-same-items-as matcher compares two lists as sets"
(let ((first (list "a" "b" "c"))
(second (list "c" "a" "b"))
- (third (list "a" "c" "d")))
+ (third (list "a" "c" "d"))
+ (fourth (list "a" "b")))
(expect first :to-have-same-items-as second)
(expect second :to-have-same-items-as first)
(expect first :not :to-have-same-items-as third)
- (expect third :not :to-have-same-items-as second)))
+ (expect third :not :to-have-same-items-as second)
+ (expect first :not :to-have-same-items-as fourth)
+ (expect fourth :not :to-have-same-items-as first)))
(it "The :to-match matcher is for regular expressions"
(let ((message "foo bar baz"))