Libraryless. Click here for Pure Java version (5243L/29K).
1 | svoid test_cicAnyToRegexp() { |
2 | var re = cicAnyToRegexp("hello", "world."); |
3 | testFunctionValues((IPred<S>) s -> re.containedIn(s), |
4 | "hello", true, |
5 | "HELLO", true, |
6 | "hell", false, |
7 | "world.", true, |
8 | "worldx", false, |
9 | "hello world", true, |
10 | "what WORLD. what", true); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033600 |
Snippet name: | test_cicAnyToRegexp |
Eternal ID of this version: | #1033600/2 |
Text MD5: | 74ebd03a07258e0dd9633e9ba5c1167a |
Transpilation MD5: | adc877bb04e14017766093383400c698 |
Author: | stefan |
Category: | javax / regexp |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-11-14 21:02:28 |
Source code size: | 297 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 184 / 258 |
Version history: | 1 change(s) |
Referenced in: | [show references] |