Added missing type castings in tests

This commit is contained in:
Brian Zengel
2013-10-20 12:52:27 -04:00
parent b9925510b0
commit af8969f047
+10 -8
View File
@@ -562,28 +562,30 @@ result = <string>_.findLastKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num)
return num % 2 == 1;
});
_.forIn(new Dog('Dagny'), function(value, key) {
result = <any>_.forIn(new Dog('Dagny'), function(value, key) {
console.log(key);
});
_.forInRight(new Dog('Dagny'), function(value, key) {
result = <any>_.forInRight(new Dog('Dagny'), function(value, key) {
console.log(key);
});
_.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
result = <any>_.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
console.log(key);
});
_.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
result = <any>_.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
console.log(key);
});
_.functions(_);
_.methods(_);
result = <string[]>_.functions(_);
result = <string[]>_.methods(_);
result = <boolean>_.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
result = <any>_.invert({ 'first': 'moe', 'second': 'larry' });
_.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
_.invert({ 'first': 'moe', 'second': 'larry' });
var mergeNames = {
'stooges': [