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

9
LINES

< > BotCompany Repo | #1028918 // assertEquals_quote - print quoted

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

Libraryless. Click here for Pure Java version (2470L/16K).

1  
sS assertEquals_quote(S x, S y) {
2  
  ret assertEquals_quote(null, x, y);
3  
}
4  
5  
sS assertEquals_quote(S msg, S x, S y) {
6  
  if (neq(x, y))
7  
    fail((msg != null ? msg + ": " : "") + quote(y) + " != " + quote(x));
8  
  ret y;
9  
}

Author comment

Began life as a copy of #1001055

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: #1028918
Snippet name: assertEquals_quote - print quoted
Eternal ID of this version: #1028918/1
Text MD5: f6dee2206526faa8df2dc6e62efaa0f5
Transpilation MD5: 884a11039a8be9ee173d889c7a9689bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 21:47:47
Source code size: 225 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 205 / 304
Referenced in: [show references]