()
| 36 | public class LiteralTest { |
| 37 | |
| 38 | @Test |
| 39 | void testNumericLiteral() { |
| 40 | Random random = new Random(); |
| 41 | for (int i = 0; i < 100; ++i) { |
| 42 | testIntLiteral(random.nextInt()); |
| 43 | testLongLiteral(random.nextLong()); |
| 44 | testFloatLiteral(random.nextFloat()); |
| 45 | testDoubleLiteral(random.nextDouble()); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | private static void testIntLiteral(int i) { |
| 50 | assertEquals(IntLiteral.get(i).getValue(), i); |
nothing calls this directly
no test coverage detected