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

14
LINES

< > BotCompany Repo | #1001967 // assertFalse

JavaX fragment (include)

static void assertFalse(O o) {
  if (!(eq(o, false) /*|| isFalse(pcallF(o))*/))
    fail(str(o));
}
  
static bool assertFalse(boolean b) {
  if (b) fail("oops");
  ret b;
}

static bool assertFalse(S msg, bool b) {
  if (b) fail(msg);
  ret b;
}

Author comment

Began life as a copy of #1001598

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, lulzaavyztxj, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001967
Snippet name: assertFalse
Eternal ID of this version: #1001967/5
Text MD5: c18369c446fdf27b542a1cb41ba59b1d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-03 13:45:18
Source code size: 261 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 785 / 1275
Version history: 4 change(s)
Referenced in: [show references]