Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1034238 // test_leftArrowScript_forEach

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (32702L) is out of date.

!include once #1034831 // Gazelle 22 Function Include for Testing

set flag PingV3.

svoid test_leftArrowScript_forEach() {
  S script = trimAllLines(
    [[ l <- ll 2 3
       sum <- 0
       for number in l { sum <- plus sum number }
       sum
    ]]);
  
  assertEqualsVerbose(5, leftArrowVerbose((S) script));
}

Author comment

Began life as a copy of #1033988

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034238
Snippet name: test_leftArrowScript_forEach
Eternal ID of this version: #1034238/5
Text MD5: 04a76f2322eee13fb19ccd0e9850162f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-09-22 17:54:13
Source code size: 329 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 118 / 203
Version history: 4 change(s)
Referenced in: [show references]