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

10
LINES

< > BotCompany Repo | #1027475 // test_negateRegexp

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

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

svoid test_negateRegexp() {
  embedded bool testIt(S regexp, S s) {
    ret !regexpFind(negateRegexp(regexp), s);
  }
  
  testFunctionValues_twoArgs_flat((IF2<S, S, Bool>) (re, s) -> testIt(re, s),
    "bc", "abcd", true,
    "bc", "xyz", false,
  );
}

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: #1027475
Snippet name: test_negateRegexp
Eternal ID of this version: #1027475/6
Text MD5: a89d3405890b9c4b4af95ffe9042c4a8
Transpilation MD5: 2bc49d45d79bdb27c189af32ef48132a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 14:05:34
Source code size: 262 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 180 / 280
Version history: 5 change(s)
Referenced in: [show references]