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

4
LINES

< > BotCompany Repo | #1029391 // assertEndsWith

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

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

svoid assertEndsWith(S a, S b) {
  if (!endsWith(a, b))
    fail(quote(a) + " does not end with " + quote(b));
}

Author comment

Began life as a copy of #1003362

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: #1029391
Snippet name: assertEndsWith
Eternal ID of this version: #1029391/2
Text MD5: d14b5a456bb44df22f4c77be9b37c60c
Transpilation MD5: b34d58251768e5decfcd6f30ead63089
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-05 11:58:40
Source code size: 115 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 220 / 290
Version history: 1 change(s)
Referenced in: [show references]