Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1d9ea2820a
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 1.062 kB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>helpers.js test file</title>
<link rel="stylesheet" href="../lib/test.css" type="text/css" />
<script src="../lib/prototype.js" type="text/javascript"></script>
<script src="../lib/unittest.js" type="text/javascript"></script>
<script src="../array.extensions.js" type="text/javascript"></script>
</head>
<body>
<div id="testlog"></div>
<script type="text/javascript">
new Test.Unit.Runner({
testArrayPrototypeSum: function() {
this.assertIdentical(6, [1,2,3].sum());
this.assertIdentical(10, ['1', 2, '3', 4, '', '', '', null, 0].sum());
},
testArrayPrototypeClone: function() {
var arr = [1,2,3];
this.assertNotEqual(arr, arr.clone());
this.assertEnumEqual([1,2,3], arr.clone());
}
})
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.