aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/array/#
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/array/#')
-rw-r--r--node_modules/es5-ext/test/array/#/is-empty.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/es5-ext/test/array/#/is-empty.js b/node_modules/es5-ext/test/array/#/is-empty.js
new file mode 100644
index 000000000..1e1c097b3
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/is-empty.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([]), true, "Empty");
+ a(t.call({ length: 0 }), true, "Empty lists");
+ a(t.call([1, x, "raz"]), false, "Non empty");
+};