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

8
LINES

< > BotCompany Repo | #1032852 // test_tok_scanTypeArgs

JavaX fragment (include)

svoid test_tok_scanTypeArgs() {
  LS tok = javaTok("A<B>");
  assertEqualsVerbose("<B>", tok_scanTypeArgs(tok, indexOf(tok, "<")));
  tok = javaTok("A<B, C> d");
  assertEqualsVerbose("<B, C>", tok_scanTypeArgs(tok, indexOf(tok, "<")));
  tok = javaTok("A B E");
  assertEqualsVerbose("", tok_scanTypeArgs(tok, indexOf(tok, "E")));
}

Author comment

Began life as a copy of #1032849

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032852
Snippet name: test_tok_scanTypeArgs
Eternal ID of this version: #1032852/3
Text MD5: 6cddd71f4f218989740c3ed58b23c0ca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 21:04:40
Source code size: 342 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 157
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)