@GwtIncompatible // Floats.tryParse public void testTryParseNaN() { checkTryParse("NaN"); checkTryParse("+NaN"); checkTryParse("-NaN"); }
@GwtIncompatible // Floats.tryParse public void testTryParseInfinity() { checkTryParse(Float.POSITIVE_INFINITY, "Infinity"); checkTryParse(Float.POSITIVE_INFINITY, "+Infinity"); checkTryParse(Float.NEGATIVE_INFINITY, "-Infinity"); }
@GwtIncompatible // Floats.tryParse public void testTryParseOfToStringIsOriginal() { for (float f : NUMBERS) { checkTryParse(f, Float.toString(f)); } }
@AndroidIncompatible // slow @GwtIncompatible // Floats.tryParse public void testTryParseAllCodePoints() { // Exercise non-ASCII digit test cases and the like. char[] tmp = new char[2]; for (int i = Character.MIN_CODE_POINT; i < Character.MAX_CODE_POINT; i++) { Character.toChars(i, tmp, 0); checkTryParse(String.copyValueOf(tmp, 0, Character.charCount(i))); } }
@GwtIncompatible // Floats.tryParse public void testTryParseHex() { for (String signChar : ImmutableList.of("", "+", "-")) { for (String hexPrefix : ImmutableList.of("0x", "0X")) { for (String iPart : ImmutableList.of("", "0", "1", "F", "f", "c4", "CE")) { for (String fPart : ImmutableList.of("", ".", ".F", ".52", ".a")) { for (String expMarker : ImmutableList.of("p", "P")) { for (String exponent : ImmutableList.of("0", "-5", "+20", "52")) { for (String typePart : ImmutableList.of("", "D", "F", "d", "f")) { checkTryParse( signChar + hexPrefix + iPart + fPart + expMarker + exponent + typePart); } } } } } } } }
@GwtIncompatible // Floats.tryParse public void testTryParseOfToHexStringIsOriginal() { for (float f : NUMBERS) { checkTryParse(f, Float.toHexString(f)); } }
@GwtIncompatible // Floats.tryParse public void testTryParseNaN() { checkTryParse("NaN"); checkTryParse("+NaN"); checkTryParse("-NaN"); }
@GwtIncompatible // Floats.tryParse public void testTryParseInfinity() { checkTryParse(Float.POSITIVE_INFINITY, "Infinity"); checkTryParse(Float.POSITIVE_INFINITY, "+Infinity"); checkTryParse(Float.NEGATIVE_INFINITY, "-Infinity"); }
@GwtIncompatible // Floats.tryParse public void testTryParseOfToStringIsOriginal() { for (float f : NUMBERS) { checkTryParse(f, Float.toString(f)); } }
@AndroidIncompatible // slow @GwtIncompatible // Floats.tryParse public void testTryParseAllCodePoints() { // Exercise non-ASCII digit test cases and the like. char[] tmp = new char[2]; for (int i = Character.MIN_CODE_POINT; i < Character.MAX_CODE_POINT; i++) { Character.toChars(i, tmp, 0); checkTryParse(String.copyValueOf(tmp, 0, Character.charCount(i))); } }
@GwtIncompatible // Floats.tryParse public void testTryParseHex() { for (String signChar : ImmutableList.of("", "+", "-")) { for (String hexPrefix : ImmutableList.of("0x", "0X")) { for (String iPart : ImmutableList.of("", "0", "1", "F", "f", "c4", "CE")) { for (String fPart : ImmutableList.of("", ".", ".F", ".52", ".a")) { for (String expMarker : ImmutableList.of("p", "P")) { for (String exponent : ImmutableList.of("0", "-5", "+20", "52")) { for (String typePart : ImmutableList.of("", "D", "F", "d", "f")) { checkTryParse( signChar + hexPrefix + iPart + fPart + expMarker + exponent + typePart); } } } } } } } }
@GwtIncompatible // Floats.tryParse public void testTryParseOfToHexStringIsOriginal() { for (float f : NUMBERS) { checkTryParse(f, Float.toHexString(f)); } }