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

13
LINES

< > BotCompany Repo | #1026300 // test_tok_tildeCalls (OK)

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

Libraryless. Click here for Pure Java version (3625L/22K).

svoid test_tok_tildeCalls() {
  LS tok = javaTok("gazelle_guild()~.getRoles()";
  tok_tildeCalls(tok);
  assertEqualsVerbose([[call(gazelle_guild(), "getRoles")]], join(tok));
  
  tok = javaTok("gazelle_guild()~.L getRoles()";
  tok_tildeCalls(tok);
  assertEqualsVerbose([[(L) call(gazelle_guild(), "getRoles")]], join(tok));
  
  testTranspilationFunction tok_tildeCalls(
    "a~.text", [[getOpt text(a)]]
  );
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026300
Snippet name: test_tok_tildeCalls (OK)
Eternal ID of this version: #1026300/7
Text MD5: 9f7cf366217722822c01773c9e24c7e9
Transpilation MD5: 09fd0f009ca9fd2dd9d6a422b090f913
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-21 20:35:00
Source code size: 429 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 270
Version history: 6 change(s)
Referenced in: [show references]