Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 707 for Expected (0.14 sec)

  1. guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field2", "value2");
        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
        final String expected2 = "TestClass{field1=1, value1, field2=value2, 2}";
        helper.addValue(2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          try {
            iterator.remove();
            fail("Expected IllegalStateException.");
          } catch (IllegalStateException expected) {
          }
        } else {
          iterator.next();
          try {
            iterator.remove();
            fail("Expected UnsupportedOperationException.");
          } catch (UnsupportedOperationException expected) {
          }
        }
        assertInvariants(map);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        int i = 0;
        while (expectedIterator.hasNext()) {
          Object expected = expectedIterator.next();
    
          assertTrue(
              "index " + i + " expected <" + expected + "., actual is exhausted",
              actualIterator.hasNext());
    
          Object actual = actualIterator.next();
          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        }
        assertEquals(expected, builder.toString());
        assertFullyRead(reader);
    
        // read all to one CharBuffer
        reader = new CharSequenceReader(charSequence);
        CharBuffer buf2 = CharBuffer.allocate(expected.length());
        assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2));
        Java8Compatibility.flip(buf2);
        assertEquals(expected, buf2.toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

              expected[b][i] = expected[b][bit] ^ expected[b][i ^ bit];
            }
          }
        }
    
        int[][] actual = Crc32cHashFunction.Crc32cHasher.STRIDE_TABLE;
        assertTrue(
            "Expected: \n"
                + Arrays.deepToString(expected)
                + "\nActual:\n"
                + Arrays.deepToString(actual),
            Arrays.deepEquals(expected, actual));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Set<Integer>> expected = newHashSet();
        expected.add(ImmutableSet.<Integer>of());
        expected.add(ImmutableSet.of(1));
        expected.add(ImmutableSet.of(2));
        expected.add(ImmutableSet.of(3));
        expected.add(ImmutableSet.of(1, 2));
        expected.add(ImmutableSet.of(1, 3));
        expected.add(ImmutableSet.of(2, 3));
        expected.add(ImmutableSet.of(1, 2, 3));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/Utf8Test.java

        expected[118] = 786432;
        expected[119] = 1048576;
        expected[120] = 458752;
        expected[121] = 524288;
        expected[122] = 65536;
        // Anything not assigned was the default 0.
        return expected;
      }
    
      /**
       * Helper to run the loop to test all the permutations for the number of bytes specified.
       *
       * @param numBytes the number of bytes in the byte array
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

              BigIntegerMath.divide(p, ZERO, mode);
              fail("Expected ArithmeticException");
            } catch (ArithmeticException expected) {
            }
          }
        }
      }
    
      public void testFactorial() {
        BigInteger expected = BigInteger.ONE;
        for (int i = 1; i <= 200; i++) {
          expected = expected.multiply(BigInteger.valueOf(i));
          assertEquals(expected, BigIntegerMath.factorial(i));
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

              BigIntegerMath.divide(p, ZERO, mode);
              fail("Expected ArithmeticException");
            } catch (ArithmeticException expected) {
            }
          }
        }
      }
    
      public void testFactorial() {
        BigInteger expected = BigInteger.ONE;
        for (int i = 1; i <= 200; i++) {
          expected = expected.multiply(BigInteger.valueOf(i));
          assertEquals(expected, BigIntegerMath.factorial(i));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
Back to top