Libraryless. Click here for Pure Java version (4119L/24K).
1 | svoid test_tok_leftScanType() { |
2 | LS tok = javaTok("a.b.c d"); |
3 | assertEqualsVerbose("a", get(tok, tok_leftScanType(tok, indexOf(tok, "d")))); |
4 | |
5 | tok = javaTok("= a c"); |
6 | assertEqualsVerbose("a", get(tok, tok_leftScanType(tok, indexOf(tok, "c")))); |
7 | |
8 | tok = javaTok("b[] c"); |
9 | assertEqualsVerbose("b", get(tok, tok_leftScanType(tok, indexOf(tok, "c")))); |
10 | |
11 | tok = javaTok("a<b, c>.d e"); |
12 | assertEqualsVerbose("a", get(tok, tok_leftScanType(tok, indexOf(tok, "e")))); |
13 | } |
Began life as a copy of #1027998
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032803 |
Snippet name: | test_tok_leftScanType |
Eternal ID of this version: | #1032803/5 |
Text MD5: | 8aa094edfb4d2b4512662e3a2648e083 |
Transpilation MD5: | b0b4cb3d3d3d11f6bba719977e88661d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-15 22:05:51 |
Source code size: | 489 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 143 / 213 |
Version history: | 4 change(s) |
Referenced in: | [show references] |