Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testLessThanBranchFree (0.22 sec)

  1. guava-tests/test/com/google/common/math/IntMathTest.java

        assertEquals(
            /*expected=*/ IntMath.sqrt(Integer.MAX_VALUE, FLOOR),
            /*actual=*/ IntMath.FLOOR_SQRT_MAX_INT);
      }
    
      @AndroidIncompatible // presumably slow
      public void testLessThanBranchFree() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int y : ALL_INTEGER_CANDIDATES) {
            if (LongMath.fitsInInt((long) x - y)) {
              int expected = (x < y) ? 1 : 0;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

          fail("Expected ArithmeticException");
        } catch (ArithmeticException expected) {
        }
      }
    
      @AndroidIncompatible // slow
      public void testLessThanBranchFree() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (long y : ALL_LONG_CANDIDATES) {
            BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
            if (fitsInLong(difference)) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/IntMathTest.java

        assertEquals(
            /*expected=*/ IntMath.sqrt(Integer.MAX_VALUE, FLOOR),
            /*actual=*/ IntMath.FLOOR_SQRT_MAX_INT);
      }
    
      @AndroidIncompatible // presumably slow
      public void testLessThanBranchFree() {
        for (int x : ALL_INTEGER_CANDIDATES) {
          for (int y : ALL_INTEGER_CANDIDATES) {
            if (LongMath.fitsInInt((long) x - y)) {
              int expected = (x < y) ? 1 : 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

          fail("Expected ArithmeticException");
        } catch (ArithmeticException expected) {
        }
      }
    
      @AndroidIncompatible // slow
      public void testLessThanBranchFree() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (long y : ALL_LONG_CANDIDATES) {
            BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
            if (fitsInLong(difference)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top