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

11
LINES

< > BotCompany Repo | #1033600 // test_cicAnyToRegexp

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

Libraryless. Click here for Pure Java version (5243L/29K).

svoid test_cicAnyToRegexp() {
  var re = cicAnyToRegexp("hello", "world.");
  testFunctionValues((IPred<S>) s -> re.containedIn(s),
    "hello", true,
    "HELLO", true,
    "hell", false,
    "world.", true,
    "worldx", false,
    "hello world", true,
    "what WORLD. what", true);
}

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: 185 / 260
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)