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

4
LINES

< > BotCompany Repo | #1023508 // test_indicesOfTokenPredicateSequence (OK)

JavaX fragment (include)

svoid test_indicesOfTokenPredicateSequence() {
  assertEqualsVerbose(ll(1, 5), indicesOfTokenPredicateSequence(javaTok("a 1 b 2"), ll(f isIdentifier, f isInteger)));
  assertEqualsVerbose(ll(1), indicesOfTokenPredicateSequence(javaTok("a 1 b b"), ll(f isIdentifier, f isInteger)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023508
Snippet name: test_indicesOfTokenPredicateSequence (OK)
Eternal ID of this version: #1023508/5
Text MD5: ac0fe83e869ded337732a71314afbc84
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-26 14:21:06
Source code size: 286 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 237 / 279
Version history: 4 change(s)
Referenced in: [show references]