1 | static <A, C extends Collection<A>> C assertContainsVerbose(S msg default null, C c, A y) { |
2 | printVars("assertContainsVerbose", +msg, +c, +y); |
3 | if (!contains(c, y)) |
4 | fail((msg != null ? msg + ": " : "") + y + " not contained in " + c); |
5 | ret c; |
6 | } |
7 | |
8 | sS assertContainsVerbose(S b, S a) { |
9 | printVars("assertContainsVerbose", +a, +b); |
10 | if (!contains(a, b)) |
11 | fail(quote(b) + " not contained in " + quote(a)); |
12 | ret a; |
13 | } |
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: | 207 / 223 |
Version history: | 2 change(s) |
Referenced in: | [show references] |