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

10
LINES

< > BotCompany Repo | #1023235 // test_matchDoubleRest

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2268L/15K).

svoid test_matchDoubleRest() {
  new Matches m;
  assertTrueVerbose(matchDoubleRest("is", "is green green", m));
  assertEqualsVerbose(1, l(m.m));
  assertEquals("green", m.rest());
  
  assertFalseVerbose(matchDoubleRest("is", "is green blue"));
  assertFalseVerbose(matchDoubleRest("is", "is green green green"));
  assertFalseVerbose(matchDoubleRest("is", "if green green"));
}

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: #1023235
Snippet name: test_matchDoubleRest
Eternal ID of this version: #1023235/3
Text MD5: a848a5d52284d5a50efbd261b3dcfe20
Transpilation MD5: 20f3ca25b2f23b21463616cce7c129b8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-18 23:45:19
Source code size: 389 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 387
Version history: 2 change(s)
Referenced in: [show references]