Libraryless. Click here for Pure Java version (2268L/15K).
1 | svoid test_matchDoubleRest() { |
2 | new Matches m; |
3 | assertTrueVerbose(matchDoubleRest("is", "is green green", m)); |
4 | assertEqualsVerbose(1, l(m.m)); |
5 | assertEquals("green", m.rest()); |
6 | |
7 | assertFalseVerbose(matchDoubleRest("is", "is green blue")); |
8 | assertFalseVerbose(matchDoubleRest("is", "is green green green")); |
9 | assertFalseVerbose(matchDoubleRest("is", "if green green")); |
10 | } |
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: | 277 / 389 |
Version history: | 2 change(s) |
Referenced in: | [show references] |