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

10
LINES

< > BotCompany Repo | #1027144 // test_gazelle_deepReplaceFullPhrases (OK)

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

Libraryless. Click here for Pure Java version (2944L/18K).

svoid test_gazelle_deepReplaceFullPhrases() {
  assertEqualsVerbose("hello (people of the wide) world",
    gazelle_deepReplaceFullPhrases(litcimap("whole wide" := "wide"),
      "hello (people of the (whole wide)) world"));
      
  // no replacement of single word
  assertEqualsVerbose("hello world",
    gazelle_deepReplaceFullPhrases(litcimap("world" := "big world"),
      "hello world"));
}

Author comment

Began life as a copy of #1027142

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: #1027144
Snippet name: test_gazelle_deepReplaceFullPhrases (OK)
Eternal ID of this version: #1027144/3
Text MD5: 5777cf60995b3d31ffdbf822dbad6a73
Transpilation MD5: 882b35fc4499899dc53a91fb60e10ad0
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-22 11:24:01
Source code size: 406 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 227 / 324
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)