Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for overkill (0.16 sec)

  1. guava-tests/test/com/google/common/primitives/IntsTest.java

            .isEqualTo(0xFFEEDDCC);
      }
    
      public void testByteArrayRoundTrips() {
        Random r = new Random(5);
        byte[] b = new byte[Ints.BYTES];
    
        // total overkill, but, it takes 0.1 sec so why not...
        for (int i = 0; i < 10000; i++) {
          int num = r.nextInt();
          assertThat(Ints.fromByteArray(Ints.toByteArray(num))).isEqualTo(num);
    
          r.nextBytes(b);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/IntsTest.java

            .isEqualTo(0xFFEEDDCC);
      }
    
      public void testByteArrayRoundTrips() {
        Random r = new Random(5);
        byte[] b = new byte[Ints.BYTES];
    
        // total overkill, but, it takes 0.1 sec so why not...
        for (int i = 0; i < 10000; i++) {
          int num = r.nextInt();
          assertThat(Ints.fromByteArray(Ints.toByteArray(num))).isEqualTo(num);
    
          r.nextBytes(b);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
Back to top