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

6
LINES

< > BotCompany Repo | #1028670 // test_replaceSquareBracketVars

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

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

svoid test_replaceSquareBracketVars() {
  assertEqualsVerbose("1 3 2", replaceSquareBracketVars("1 [bla] 2", bla := 3));
  assertEqualsVerbose("hello", replaceSquareBracketVars("[BLA]", "[bla]" := "hello"));
  assertEqualsVerbose("[a]", replaceSquareBracketVars("[a]", "[a]" := "[a]"));
  assertEqualsVerbose("[b]", replaceSquareBracketVars("[b]", "[a]" := "[x]"));
}

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: #1028670
Snippet name: test_replaceSquareBracketVars
Eternal ID of this version: #1028670/5
Text MD5: 6c965b0663303b5376f2e8d512ca5872
Transpilation MD5: 1f05fd532dfbe9b7100f3b973b364c13
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-04 01:29:21
Source code size: 372 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 290
Version history: 4 change(s)
Referenced in: [show references]