1 | svoid test_tok_autoInitVars() { |
2 | LS tok = javaTok("boolean var;"); |
3 | tok_autoInitVars(tok); |
4 | assertEqualsVerbose("boolean var = false;", join(tok)); |
5 | tok = javaTok("final boolean var;"); |
6 | tok_autoInitVars(tok); |
7 | assertEqualsVerbose("final boolean var;", join(tok)); |
8 | } |
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: | 238 / 290 |
Version history: | 2 change(s) |
Referenced in: | [show references] |