Libraryless. Click here for Pure Java version (3824L/24K).
1 | svoid test_findOneArgumentPatterns() { |
2 | LLS toks = lambdaMap splitAtSpaceTok(tlft([[ |
3 | kgopkgorkgorkogrkkkbla makes sense |
4 | heldfdfdkfodkfodfkodlo makes sense |
5 | but 12345! makes no sense |
6 | but b1lubb makes no sense |
7 | ]])); |
8 | |
9 | MultiSet<S> patterns = findOneArgumentPatterns(toks); |
10 | assertEquals(litcimap("* makes sense" := 2, "but * makes no sense" := 2), multiSetToMap(patterns)); |
11 | } |
Began life as a copy of #1028730
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028731 |
Snippet name: | test_findOneArgumentPatterns |
Eternal ID of this version: | #1028731/2 |
Text MD5: | e1a8c0f497f403dd330bf3cc2c9137eb |
Transpilation MD5: | b224052853a79b6e653465e2494334bc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-06 16:25:40 |
Source code size: | 404 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 340 |
Version history: | 1 change(s) |
Referenced in: | [show references] |