Sha256: 0e0b48c15458ecd2695f570278a5ae83f94cc9099c63789d3ca05418ca571eaf
Contents?: true
Size: 657 Bytes
Versions: 13
Compression:
Stored size: 657 Bytes
Contents
// ======================================================================== // SC.isArray Tests // ======================================================================== /*globals module test */ var objectA,objectB,objectC; //global variables module("Array Check" , { setup: function(){ objectA = [1,2,3]; objectB = 23; objectC = ["Hello","Hi"]; objectD = "Hello"; objectE = {}; } }); test("should check if a given object is an array or not " ,function(){ equals(SC.isArray(objectA),true); equals(SC.isArray(objectB),false); equals(SC.isArray(objectC),true); equals(SC.isArray(objectD),false); equals(SC.isArray(objectE),false); });
Version data entries
13 entries across 13 versions & 2 rubygems