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.

1  
!include once #1034831 // Gazelle 22 Function Include for Testing
2  
3  
set flag PingV3.
4  
5  
svoid test_leftArrowScript_forEach() {
6  
  S script = trimAllLines(
7  
    [[ l <- ll 2 3
8  
       sum <- 0
9  
       for number in l { sum <- plus sum number }
10  
       sum
11  
    ]]);
12  
  
13  
  assertEqualsVerbose(5, leftArrowVerbose((S) script));
14  
}

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: 212 / 315
Version history: 4 change(s)
Referenced in: [show references]