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

13
LINES

< > BotCompany Repo | #1036292 // test_leftArrowScript_pcall

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

Transpiled version (34705L) is out of date.

1  
!include once #1034831 // Gazelle 22 Function Include for Testing
2  
3  
svoid test_leftArrowScript_pcall() {
4  
  new L<Throwable> errors;
5  
  
6  
  temp tempSetPCallPolicyForThread(e -> errors.add(e));
7  
  assertNullVerbose(leftArrowScript([[
8  
    pcall { fail "What" }
9  
  ]]));
10  
  
11  
  assertEqualsVerbose(1, l(errors));
12  
  assertContainsVerbose("What", str(first(errors));
13  
}

Author comment

Began life as a copy of #1034264

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036292
Snippet name: test_leftArrowScript_pcall
Eternal ID of this version: #1036292/4
Text MD5: a7b871b15a61ba68eabe8946c38ac9b4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-11 18:35:35
Source code size: 368 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 73 / 115
Version history: 3 change(s)
Referenced in: [show references]