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)

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

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: 161 / 192
Version history: 4 change(s)
Referenced in: [show references]