#QUALITY by cg
authorClaus Gittinger <cg@exept.de>
Tue, 28 Aug 2018 13:04:41 +0200
changeset 2004 3b06c74f24b7
parent 2003 710ddabaec76
child 2005 4c96619d8445
#QUALITY by cg class: RegressionTests::JavaScriptTestClass added: #testMap8
RegressionTests__JavaScriptTestClass.st
--- a/RegressionTests__JavaScriptTestClass.st	Tue Aug 28 13:03:54 2018 +0200
+++ b/RegressionTests__JavaScriptTestClass.st	Tue Aug 28 13:04:41 2018 +0200
@@ -76,6 +76,17 @@
     return [1,2,3].map( f );
 }
 
+/** category: testing **/
+
+/**
+    (new JavaScriptTestClass).testMap8()
+ **/
+function testMap8() {
+    var f = (el => el ** 2);
+    
+    return [1,2,3].map( f );
+}
+
 
 /** category: documentation **/