]> git.r.bdr.sh - rbdr/dotfiles/blob
07d5bbbd61f7af4c4ad8ca4e047803f0ab528f39
[rbdr/dotfiles] /
1 'use strict';
2
3 var o = { 1: 1, 2: 2, 3: 3 };
4
5 module.exports = function (t, a) {
6 var o2 = {};
7 t(o, function (value, name) {
8 o2[name] = value;
9 return true;
10 });
11 a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
12
13 a(t(o, function () {
14 return true;
15 }), true, "Succeeds");
16
17 a(t(o, function () {
18 return false;
19 }), false, "Fails");
20
21 };