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

13
LINES

< > BotCompany Repo | #1028073 // test_mmo2_match (OK)

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

Libraryless. Click here for Pure Java version (3997L/24K).

svoid test_mmo2_match() {
  testFunctionValues_twoArgs_flat mmo2_match(test_mmo_match_parsedPattern_examples());
  testFunctionValues_twoArgs_flat mmo2_match(
    "^hello", " hello", true,
    "^hello", "yo hello", false,
    "world$", "in the world", true,
    "world$", "in the world yo", false,
    "^(what, who)", "what is up", true,
    "^(what, who)", "who is here", true,
    "^(what, who)", "nope", false,
    "^ok$, ^yo$", "ok boy", false,
  );
}

Author comment

Began life as a copy of #1026548

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: #1028073
Snippet name: test_mmo2_match (OK)
Eternal ID of this version: #1028073/8
Text MD5: a246cb247f226aa582c85626e2c1588b
Transpilation MD5: e292ff2537a464939cc3a24038ab7c43
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-25 13:16:08
Source code size: 467 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 324
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028083 - test_mmo2_scoredMatch (OK)