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

12
LINES

< > BotCompany Repo | #1024060 // test_tok_typesAndNamesOfParams

JavaX fragment (include)

svoid test_tok_typesAndNamesOfParams() {
  assertEqualsVerbose(ll(pair("virtual A", "a")),
    tok_typesAndNamesOfParams(javaTok("virtual A a")));
  assertEqualsVerbose(ll(pair("A", "a"), pair("?", "b")),
    tok_typesAndNamesOfParams(javaTok("A a, b")));
  assertEqualsVerbose(ll(pair("int", "a")),
    tok_typesAndNamesOfParams(javaTok("int a default 0")));
  assertEqualsVerbose(ll(pair("int", "a"), pair("S", "b")),
    tok_typesAndNamesOfParams(javaTok("int a default 0, S b default abc()")));
  assertEqualsVerbose(ll(pair("DoublePt etc", "p")),
    tok_typesAndNamesOfParams(javaTok("DoublePt etc p")));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024060
Snippet name: test_tok_typesAndNamesOfParams
Eternal ID of this version: #1024060/7
Text MD5: f3bf965c0d81d0ff339ba9d821fd689d
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-17 18:44:11
Source code size: 623 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 209 / 279
Version history: 6 change(s)
Referenced in: [show references]