static int assertSignEquals(int x, int y) { ret assertSignEquals(null, x, y); } static int assertSignEquals(S msg, int x, int y) { if (sign(x) != sign(y)) fail((msg != null ? msg + ": " : "") + y + " sign != " + x); ret y; }
Began life as a copy of #1001055
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012948 |
Snippet name: | assertSignEquals - test sign of int |
Eternal ID of this version: | #1012948/1 |
Text MD5: | 1bc705b45f42155bb6f5acc4ebffa8c5 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-18 17:09:37 |
Source code size: | 243 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 342 / 371 |
Referenced in: | [show references] |