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

4
LINES

< > BotCompany Repo | #1034957 // test_evalWithTimeout_with_hijackPrint (OK)

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

Libraryless. Click here for Pure Java version (6055L/33K).

svoid test_evalWithTimeout_with_hijackPrint() {
  assertEqualsVerbose("Hello\n",
    hijackPrint(-> evalWithTimeout(5.0, -> print("Hello")));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034957
Snippet name: test_evalWithTimeout_with_hijackPrint (OK)
Eternal ID of this version: #1034957/3
Text MD5: 9585352d2b924aade2edfa615d70fb0f
Transpilation MD5: 2ae47564d787fc4f585f3096d4e59e4e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-17 21:07:41
Source code size: 146 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 58 / 96
Version history: 2 change(s)
Referenced in: [show references]