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

7
LINES

< > BotCompany Repo | #1032540 // test_replaceDollarVars_js (OK)

JavaX fragment (include)

svoid test_replaceDollarVars_js() {
  assertEqualsVerbose("var bla = {\"x\":\"y\"}; variable = 1;",
    replaceDollarVars_js("var bla = $blubb; $x = $y;",
      blubb := litorderedmap(x := "y"),
      x := JS("variable"),
      y := 1));
}

Author comment

Began life as a copy of #1030663

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032540
Snippet name: test_replaceDollarVars_js (OK)
Eternal ID of this version: #1032540/5
Text MD5: 8c317bc4913214641e9ccc3d7646445d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-22 14:45:35
Source code size: 245 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 160 / 191
Version history: 4 change(s)
Referenced in: [show references]