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.

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

svoid test_leftArrowScript_pcall() {
  new L<Throwable> errors;
  
  temp tempSetPCallPolicyForThread(e -> errors.add(e));
  assertNullVerbose(leftArrowScript([[
    pcall { fail "What" }
  ]]));
  
  assertEqualsVerbose(1, l(errors));
  assertContainsVerbose("What", str(first(errors));
}

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: 65 / 101
Version history: 3 change(s)
Referenced in: [show references]