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

8
LINES

< > BotCompany Repo | #1035279 // test_leftArrowScript_returnValueNotNeededOptimization

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

Uses 679K of libraries. Click here for Pure Java version (30267L/151K).

svoid test_leftArrowScript_returnValueNotNeededOptimization() {
  LS tok = javaTokForStructure(sfu(leftArrowParse("for y to 2 { for x to 2 { y } }; null")));
  
  // Note: This is not very robust - the line "null" could also contain a
  // returnValueNeeded field in the future
  assertFalse("test_leftArrowScript_returnValueNotNeededOptimization",
    !jcontains(tok, "returnValueNeeded=t"));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035279
Snippet name: test_leftArrowScript_returnValueNotNeededOptimization
Eternal ID of this version: #1035279/1
Text MD5: f5aa49251b5cb6baf688dcf7b8e38640
Transpilation MD5: 00a6f61914129060600288d681e4d056
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-28 22:29:52
Source code size: 402 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 15 / 28
Referenced in: [show references]