mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
Test the newly-introduced Integer#decode method
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
d04cda30ca
commit
95fcc9ac8e
@ -314,5 +314,11 @@ public class Integers {
|
|||||||
|
|
||||||
{ int b = 0xBE; int x = 0; int y = 0xFF;
|
{ int b = 0xBE; int x = 0; int y = 0xFF;
|
||||||
expect(((b >>> x) & y) == 0xBE); }
|
expect(((b >>> x) & y) == 0xBE); }
|
||||||
|
|
||||||
|
expect(123 == Integer.decode("123").intValue());
|
||||||
|
expect(-123 == Integer.decode("-123").intValue());
|
||||||
|
expect(-83 == Integer.decode("-0123").intValue());
|
||||||
|
expect(-291 == Integer.decode("-0x123").intValue());
|
||||||
|
expect(291 == Integer.decode("#123").intValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user