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

5
LINES

< > BotCompany Repo | #1019238 // assertNoLineBreaks

JavaX fragment (include)

sS assertNoLineBreaks(S s) {
  if (containsNewLine(s))
    fail(shorten(quote(s), 80));
  ret s;
}

Author comment

Began life as a copy of #1016714

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019238
Snippet name: assertNoLineBreaks
Eternal ID of this version: #1019238/2
Text MD5: 8a81509018a2c7f97539881acd830a8b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-28 14:25:00
Source code size: 102 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 350 / 376
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)