static <A, C extends Collection<A>> C assertContainsVerbose(S msg default null, C c, A y) { printVars("assertContainsVerbose", +msg, +c, +y); if (!contains(c, y)) fail((msg != null ? msg + ": " : "") + y + " not contained in " + c); ret c; } sS assertContainsVerbose(S b, S a) { printVars("assertContainsVerbose", +a, +b); if (!contains(a, b)) fail(quote(b) + " not contained in " + quote(a)); ret a; }
Began life as a copy of #1012660
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036296 |
Snippet name: | assertContainsVerbose |
Eternal ID of this version: | #1036296/3 |
Text MD5: | 7ac49baaeba9f73b1ac20ea6f5cf0693 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-11-11 18:40:40 |
Source code size: | 435 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 133 / 143 |
Version history: | 2 change(s) |
Referenced in: | [show references] |