lang-test.js revision aa37793651f52858384f57a8d744b734d9a30950
name: 'Lang tests',
test_is_array: function() {
var a = [];
a["one"] = "two";
"Element collections are array-like, but not arrays");
},
test_is_boolean: function() {
},
test_is_function: function() {
},
test_is_null: function() {
},
test_is_number: function() {
Assert.isFalse(Lang.isNumber('123.123'), "the string '123.123' is not a number, even though it can be cast into one");
Assert.isFalse(Lang.isNumber(1/0), "undefined numbers and infinity are not numbers we want to use");
},
test_is_object: function() {
Assert.isFalse(Lang.isObject(null), "null should return false even though it technically is an object");
},
test_is_string: function() {
},
test_is_undefined: function() {
},
test_trim: function() {
},
test_trim_left: function() {
},
test_trim_right: function() {
},
test_is_value: function() {
},
test_is_date: function() {
var badDateObj = new Date('junk');
Assert.isFalse(Lang.isDate(badDateObj), "A date object containing and invalid date should be false.");
}
}));