| |
| == Running test suite: Set |
| -- Running test case: Set.prototype.find |
| PASS: Set can find a item it holds. |
| PASS: Set finds the first item if the given predicate matches multiple items. |
| PASS: Set returns 'undefined' when attempting to find an item if the given predicate doesn't match anything. |
| |
| -- Running test case: Set.prototype.filter |
| PASS: Set can filter based on the value. |
| PASS: Set can filter based on the key. |
| PASS: Set can filter based on the set object. |
| PASS: Set can filter with a different this. |
| PASS: Set can filter based on the set object with a different this. |
| |
| -- Running test case: Set.prototype.some |
| PASS: Set can 'some' based on the value. |
| PASS: Set can 'some' based on the key. |
| PASS: Set can 'some' based on the set object. |
| PASS: Set can 'some' with a different this. |
| PASS: Set can 'some' based on the set object with a different this. |
| |
| -- Running test case: Set.prototype.pushAll |
| Array: |
| [1,2] => [1,2,"a1","a2"] |
| |
| Set: |
| [1,2] => [1,2,"s1","s2"] |
| [1,2] => [1,2,["s1","s1"],["s2","s2"]] |
| [1,2] => [1,2,"s1","s2"] |
| [1,2] => [1,2,"s1","s2"] |
| |
| Map: |
| [1,2] => [1,2,["m1k","m1v"],["m2k","m2v"]] |
| [1,2] => [1,2,["m1k","m1v"],["m2k","m2v"]] |
| [1,2] => [1,2,"m1k","m2k"] |
| [1,2] => [1,2,"m1v","m2v"] |
| |
| Object: |
| [1,2] => [1,2,["o1k","o1v"],["o2k","o2v"]] |
| [1,2] => [1,2,"o1k","o2k"] |
| [1,2] => [1,2,"o1v","o2v"] |
| |
| Generator: |
| [1,2] => [1,2,"g1","g2"] |
| |
| Node: |
| [1,2] => [1,2,<n1>,<n2>] |
| [1,2] => [1,2,<n1>,<n2>] |
| |
| Object (doesn't have [Symbol.iterator]): |
| PASS: Should produce an exception. |
| TypeError: {} is not iterable |
| |
| -- Running test case: Set.prototype.take |
| PASS: Set can take `key`. |
| PASS: Set no longer has `key`. |
| PASS: Set can NOT take `key`. |
| PASS: Set can NOT take `DNE`, as it does NOT exist. |
| |
| -- Running test case: Set.prototype.equals |
| PASS: an empty set should be equal to another empty set. |
| PASS: a set should be equal to another set with the same values. |
| PASS: a set should be equal to another set with the same values in a different order. |
| PASS: a set should not be a equal to another set with different values. |
| PASS: a set should not be equal to another set with same and different values. |
| |
| -- Running test case: Set.prototype.firstValue |
| PASS: Set with values [] should have firstValue equal to undefined. |
| PASS: Set with values [1,2,3] should have firstValue equal to 1. |
| |
| -- Running test case: Set.prototype.lastValue |
| PASS: Set with values [] should have lastValue equal to undefined. |
| PASS: Set with values [1,2,3] should have lastValue equal to 3. |
| |