1 | svoid test_tok_typesAndNamesOfParams() { |
2 | assertEqualsVerbose(ll(pair("virtual A", "a")), |
3 | tok_typesAndNamesOfParams(javaTok("virtual A a"))); |
4 | assertEqualsVerbose(ll(pair("A", "a"), pair("?", "b")), |
5 | tok_typesAndNamesOfParams(javaTok("A a, b"))); |
6 | assertEqualsVerbose(ll(pair("int", "a")), |
7 | tok_typesAndNamesOfParams(javaTok("int a default 0"))); |
8 | assertEqualsVerbose(ll(pair("int", "a"), pair("S", "b")), |
9 | tok_typesAndNamesOfParams(javaTok("int a default 0, S b default abc()"))); |
10 | assertEqualsVerbose(ll(pair("DoublePt etc", "p")), |
11 | tok_typesAndNamesOfParams(javaTok("DoublePt etc p"))); |
12 | } |
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: | 211 / 281 |
Version history: | 6 change(s) |
Referenced in: | [show references] |