1 | static int assertSignEquals(int x, int y) { |
2 | ret assertSignEquals(null, x, y); |
3 | } |
4 | |
5 | static int assertSignEquals(S msg, int x, int y) { |
6 | if (sign(x) != sign(y)) |
7 | fail((msg != null ? msg + ": " : "") + y + " sign != " + x); |
8 | ret y; |
9 | } |
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: | 344 / 374 |
Referenced in: | [show references] |