mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
18 lines
556 B
JavaScript
18 lines
556 B
JavaScript
"use strict";
|
|
|
|
var SubArray = require("../../../../array/_sub-array-dummy-safe");
|
|
|
|
module.exports = function (t, a) {
|
|
var arr, x = {}, subArr, result;
|
|
|
|
arr = ["foo", undefined, 0, "2d", false, x, null];
|
|
|
|
a.deep(t.call(arr, Boolean), [true, false, false, true, false, true, false], "Plain array");
|
|
|
|
subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
|
|
|
|
result = t.call(subArr, Boolean);
|
|
a(result instanceof SubArray, true, "Instance of subclass");
|
|
a.deep(result, [true, false, false, true, false, true, false], "Result of subclass");
|
|
};
|