Skip to content

Commit 5902cb0

Browse files
tests: add iterable
1 parent cb82c8d commit 5902cb0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

test/eql.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ tests.push([ 'eql(/\\\s/, new RegExp("\\\s"))', /\s/, new RegExp('\\\s') ]);
5050
tests.push([ 'eql(/\\\s/g, /\\\s/g)', /\s/g, /\s/g ]);
5151
tests.push([ 'eql(/\\\s/g, /\\\[/g)', /\s/g, /\[/g, true ]);
5252

53+
/*!
54+
* Iteration
55+
*/
56+
57+
tests.push([ 'eql([ 1, 2, 3 ], [ 1, 2, 3 ])', [ 1, 2, 3 ], [ 1, 2, 3 ] ]);
58+
tests.push([ 'eql([ 3, 2, 1 ], [ 1, 2, 3 ])', [ 3, 2, 1 ], [ 1, 2, 3 ], true ]);
59+
60+
tests.push([ 'eql({ a: 1, b: 2, c: 3}, { a: 1, b: 2, c: 3 })', { a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 3 } ]);
61+
5362
/*!
5463
* Test setup
5564
*/

0 commit comments

Comments
 (0)