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

8
LINES

< > BotCompany Repo | #1024177 // test_tok_autoInitVars

JavaX fragment (include)

svoid test_tok_autoInitVars() {
  LS tok = javaTok("boolean var;");
  tok_autoInitVars(tok);
  assertEqualsVerbose("boolean var = false;", join(tok));
  tok = javaTok("final boolean var;");
  tok_autoInitVars(tok);
  assertEqualsVerbose("final boolean var;", join(tok));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024177
Snippet name: test_tok_autoInitVars
Eternal ID of this version: #1024177/3
Text MD5: c32e804e2eaec24a0d13c92ef83f4239
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 14:15:54
Source code size: 279 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 290
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)