Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 0123456789 (0.27 sec)

  1. guava-tests/test/com/google/common/io/CharStreamsTest.java

       */
      public void testCopyWithReaderThatDoesNotFillBuffer() throws IOException {
        // need a long enough string for the buffer to hit 0 remaining before the copy completes
        String string = Strings.repeat("0123456789", 100);
        StringBuilder b = new StringBuilder();
        // the main assertion of this test is here... the copy will fail if the buffer size goes down
        // each time it is not filled completely
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

       */
      public void testCopyWithReaderThatDoesNotFillBuffer() throws IOException {
        // need a long enough string for the buffer to hit 0 remaining before the copy completes
        String string = Strings.repeat("0123456789", 100);
        StringBuilder b = new StringBuilder();
        // the main assertion of this test is here... the copy will fail if the buffer size goes down
        // each time it is not filled completely
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestAllMatches(forPredicate(Predicates.equalTo('c')), "ccc");
        doTestAllMatches(CharMatcher.digit(), "0123456789\u0ED0\u1B59");
        doTestAllMatches(CharMatcher.javaDigit(), "0123456789");
        doTestAllMatches(CharMatcher.digit().and(CharMatcher.ascii()), "0123456789");
        doTestAllMatches(CharMatcher.singleWidth(), "\t0123ABCdef~\u00A0\u2111");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestAllMatches(forPredicate(Predicates.equalTo('c')), "ccc");
        doTestAllMatches(CharMatcher.digit(), "0123456789\u0ED0\u1B59");
        doTestAllMatches(CharMatcher.javaDigit(), "0123456789");
        doTestAllMatches(CharMatcher.digit().and(CharMatcher.ascii()), "0123456789");
        doTestAllMatches(CharMatcher.singleWidth(), "\t0123ABCdef~\u00A0\u2111");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        }
      }
    
      public void testDecodeInt() {
        assertThat(UnsignedInts.decode("0xffffffff")).isEqualTo(0xffffffff);
        assertThat(UnsignedInts.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedInts.decode("#12345678")).isEqualTo(0x12345678);
        assertThat(UnsignedInts.decode("76543210")).isEqualTo(76543210);
        assertThat(UnsignedInts.decode("0x13579135")).isEqualTo(0x13579135);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        }
      }
    
      public void testDecodeInt() {
        assertThat(UnsignedInts.decode("0xffffffff")).isEqualTo(0xffffffff);
        assertThat(UnsignedInts.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedInts.decode("#12345678")).isEqualTo(0x12345678);
        assertThat(UnsignedInts.decode("76543210")).isEqualTo(76543210);
        assertThat(UnsignedInts.decode("0x13579135")).isEqualTo(0x13579135);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        }
      }
    
      public void testDecodeLong() {
        assertThat(UnsignedLongs.decode("0xffffffffffffffff")).isEqualTo(0xffffffffffffffffL);
        assertThat(UnsignedLongs.decode("01234567")).isEqualTo(01234567); // octal
        assertThat(UnsignedLongs.decode("#1234567890abcdef")).isEqualTo(0x1234567890abcdefL);
        assertThat(UnsignedLongs.decode("987654321012345678")).isEqualTo(987654321012345678L);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(0x12345678, in.readInt());
      }
    
      public void testNewDataOutput_empty() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        assertEquals(0, out.toByteArray().length);
      }
    
      public void testNewDataOutput_writeInt() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.writeInt(0x12345678);
        out.writeInt(0x76543210);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertEquals(0x12345678, in.readInt());
      }
    
      public void testNewDataOutput_empty() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        assertEquals(0, out.toByteArray().length);
      }
    
      public void testNewDataOutput_writeInt() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.writeInt(0x12345678);
        out.writeInt(0x76543210);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/StringsTest.java

        }
    
        try {
          Strings.repeat("x", -1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          // Massive string
          Strings.repeat("12345678", (1 << 30) + 3);
          fail();
        } catch (ArrayIndexOutOfBoundsException expected) {
        }
      }
    
      // TODO: could remove if we got NPT working in GWT somehow
      public void testRepeat_null() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
Back to top