Skip to content

Commit 785be99

Browse files
author
James Halliday
committed
document strict/loose deep equals
1 parent 95f827d commit 785be99

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

readme.markdown

+21-4
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,38 @@ Aliases: `t.notEquals()`, `t.notStrictEqual()`, `t.notStrictEquals()`,
125125

126126
Assert that `a` and `b` have the same structure and nested values using
127127
[node's deepEqual() algorithm](https://github.com/substack/node-deep-equal)
128-
with an optional description `msg`.
128+
with strict comparisons (`===`) on leaf nodes and an optional description
129+
`msg`.
129130

130-
Aliases: `t.deepEquals()`, `t.isEquivalent()`, `t.looseEqual()`,
131-
`t.looseEquals()`, `t.same()`
131+
Aliases: `t.deepEquals()`, `t.isEquivalent()`, `t.same()`
132132

133133
## t.notDeepEqual(a, b, msg)
134134

135135
Assert that `a` and `b` do not have the same structure and nested values using
136136
[node's deepEqual() algorithm](https://github.com/substack/node-deep-equal)
137-
with an optional description `msg`.
137+
with strict comparisons (`===`) on leaf nodes and an optional description
138+
`msg`.
138139

139140
Aliases: `t.notEquivalent()`, `t.notDeeply()`, `t.notSame()`,
140141
`t.isNotDeepEqual()`, `t.isNotDeeply()`, `t.isNotEquivalent()`,
141142
`t.isInequivalent()`
142143

144+
## t.deepLooseEqual(a, b, msg)
145+
146+
Assert that `a` and `b` have the same structure and nested values using
147+
[node's deepEqual() algorithm](https://github.com/substack/node-deep-equal)
148+
with loose comparisons (`==`) on leaf nodes and an optional description `msg`.
149+
150+
Aliases: `t.looseEqual()`, `t.looseEquals()`
151+
152+
## t.notDeepLooseEqual(a, b, msg)
153+
154+
Assert that `a` and `b` do not have the same structure and nested values using
155+
[node's deepEqual() algorithm](https://github.com/substack/node-deep-equal)
156+
with loose comparisons (`==`) on leaf nodes and an optional description `msg`.
157+
158+
Aliases: `t.notLooseEqual()`, `t.notLooseEquals()`
159+
143160
## t.throws(fn, expected, msg)
144161

145162
Assert that the function call `fn()` throws an exception.

0 commit comments

Comments
 (0)