Example #1
0
ArrayUtilityTest.prototype.test_removeItem_ReturnsOriginalArrayIfNoItemIsFound = function() {
	var testArray = [1, 2, 3];

	assertEquals(ArrayUtility.removeItem(testArray, 42), testArray);
};
Example #2
0
		function() {
			ArrayUtility.removeItem([1, 2, 3], NaN);
		},
Example #3
0
ArrayUtilityTest.prototype.test_removeItem_RemovesAnItemThatIsInArray = function() {
	var testArray = [1, 2, 3];

	assertEquals(ArrayUtility.removeItem(testArray, 1), [2, 3]);
};
Example #4
0
		function() {
			ArrayUtility.removeItem('not an array', 42);
		},