remove print statement, make slow tests faster

This commit is contained in:
rolux 2012-05-27 18:46:59 +02:00
parent b44b2da4d2
commit 8612218011
2 changed files with 2 additions and 4 deletions

View file

@ -95,7 +95,7 @@
1000 1000
); );
</script> </script>
> Ox.nonblockingMap(Ox.range(1000000), Ox.identity, function(r) { Ox.test(r.length, 1000000); }) > Ox.nonblockingMap(Ox.range(100000), Ox.identity, function(r) { Ox.test(r.length, 100000); })
undefined undefined
@*/ @*/
Ox.nonblockingMap = function(collection, iterator, that, callback, ms) { Ox.nonblockingMap = function(collection, iterator, that, callback, ms) {
@ -165,7 +165,7 @@
} }
); );
</script> </script>
> Ox.parallelMap(Ox.range(1000000), Ox.noop, function(r) { Ox.test(r.length, 1000000); }) > Ox.parallelMap(Ox.range(100000), Ox.noop, function(r) { Ox.test(r.length, 100000); })
undefined undefined
@*/ @*/
Ox.parallelMap = function() { Ox.parallelMap = function() {

View file

@ -605,7 +605,6 @@ Ox.test = function(file, callback) {
Ox.Break(); Ox.Break();
} }
}); });
Ox.print('FILE::', file, name, Ox.test.data)
Ox.test.data[file].results.push({ Ox.test.data[file].results.push({
actual: result, actual: result,
expected: expected, expected: expected,
@ -615,7 +614,6 @@ Ox.test = function(file, callback) {
passed: Ox.isEqual(result, expected) passed: Ox.isEqual(result, expected)
}); });
delete Ox.test.data[file].tests[name]; delete Ox.test.data[file].tests[name];
Ox.print('????::', file, name, Ox.test.data[file])
if (Ox.test.data[file].done && Ox.isEmpty(Ox.test.data[file].tests)) { if (Ox.test.data[file].done && Ox.isEmpty(Ox.test.data[file].tests)) {
Ox.test.data[file].callback(Ox.test.data[file].results); Ox.test.data[file].callback(Ox.test.data[file].results);
} }