--- a/RegressionTests__JavaScriptTests.st Fri Sep 20 21:31:16 2013 +0200
+++ b/RegressionTests__JavaScriptTests.st Wed Oct 30 12:56:52 2013 +0100
@@ -1205,16 +1205,17 @@
output := '' writeStream.
self
- execute:'test(arg) {
+ execute:'test(arg, output) {
var sum = 0;
for (var el in arg) {
- out.showCR(el*el);
+ output.showCR(el*el);
sum += el;
}
- }'
- for:nil
- arguments:( #(1 2 3) )
+ return sum;
+ }'
+ for:nil
+ arguments:( Array with:#(1 2 3) with:output)
expect:6.
self assert:(output contents asCollectionOfLinesWithReturn asArray = #(