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

6
LINES

< > BotCompany Repo | #1034053 // test_migrateClassesInStructureText

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

Libraryless. Click here for Pure Java version (4728L/26K).

svoid test_migrateClassesInStructureText() {
  S struct = "[Old(a=1), Old$bla(a=2)]";
  assertEqualsVerbose(
    "[New(a=1), New$bla(a=2)]",
    migrateClassesInStructureText(struct, litmap("Old", "New")));
}

Author comment

Began life as a copy of #1009477

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1034053
Snippet name: test_migrateClassesInStructureText
Eternal ID of this version: #1034053/1
Text MD5: 82cb2abc27eab6255e1edbe81b7a5187
Transpilation MD5: d489b244bf97229863c265ce5ece2f88
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-19 16:51:07
Source code size: 213 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 239
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)