Search Options

Results per page
Sort
Preferred Languages
Advance

Results 481 - 490 of 814 for 5000 (0.01 sec)

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

        assertThat(max(LEAST)).isEqualTo(LEAST);
        assertThat(max(GREATEST)).isEqualTo(GREATEST);
        assertThat(max(8.0, 6.0, 7.0, 5.0, 3.0, 0.0, 9.0)).isEqualTo(9.0);
    
        assertThat(max(-0.0, 0.0)).isEqualTo(0.0);
        assertThat(max(0.0, -0.0)).isEqualTo(0.0);
        assertThat(max(NUMBERS)).isEqualTo(GREATEST);
        assertThat(Double.isNaN(max(VALUES))).isTrue();
      }
    
      @GwtIncompatible
      public void testMin_noArgs() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	n := testing.AllocsPerRun(100, func() {
    		got.Reset()
    		for i := 0; i < 1000; i++ {
    			b := got.AvailableBuffer()
    			b = strconv.AppendInt(b, int64(i), 10)
    			got.Write(b)
    		}
    	})
    	if n > 0 {
    		t.Errorf("allocations occurred while appending")
    	}
    }
    
    func TestRuneIO(t *testing.T) {
    	const NRune = 1000
    	// Built a test slice while we write the data
    	b := make([]byte, utf8.UTFMax*NRune)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 16:13:04 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      @GwtIncompatible // DoubleMath.log2(double, RoundingMode)
      public void testRoundLog2ThrowsOnZerosInfinitiesAndNaN() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          for (double d :
              asList(0.0, -0.0, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NaN)) {
            assertThrows(IllegalArgumentException.class, () -> DoubleMath.log2(d, mode));
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ListenableFuture<?> future = executor.submit(incrementTask);
        assertTrue(future.isDone());
        assertListenerRunImmediately(future);
        assertEquals(1, threadLocalCount.get().intValue());
        otherThread.join(1000);
        assertEquals(Thread.State.TERMINATED, otherThread.getState());
        Throwable throwable = throwableFromOtherThread.get();
        assertNull(
            "Throwable from other thread: "
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                Thread waiter = new Thread(() -> {
                    synchronized (response) {
                        try {
                            if (!response.isReceived()) {
                                response.wait(1000);
                            }
                            latch.countDown();
                        } catch (InterruptedException e) {
                            // Ignore
                        }
                    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

        }
    
        public void test_provide_withLongClassificationName() {
            // Test with very long classification name
            StringBuilder longName = new StringBuilder();
            for (int i = 0; i < 1000; i++) {
                longName.append("VeryLongClassificationName");
            }
            assertProvideThrowsException(longName.toString());
        }
    
        public void test_provide_withUnicodeCharacters() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java

        }
    
        public void test_constructor_withLongMessage() {
            // Test constructor with long message
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 1000; i++) {
                sb.append("Long message content ");
            }
            String message = sb.toString();
            SearchEngineClientException exception = new SearchEngineClientException(message);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

            .build()
        assertThat(headers["Test-Instant"]).isEqualTo("Thu, 01 Jan 1970 00:00:00 GMT")
        assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected)
      }
    
      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers
            .Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2.java

    /* jcifs smb client library in Java
     * Copyright (C) 2000  "Michael B. Allen" <jcifs at samba dot org>
     *
     * This library is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either
     * version 2.1 of the License, or (at your option) any later version.
     *
     * This library is distributed in the hope that it will be useful,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NbtException.java

    /* jcifs smb client library in Java
     * Copyright (C) 2000  "Michael B. Allen" <jcifs at samba dot org>
     *
     * This library is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either
     * version 2.1 of the License, or (at your option) any later version.
     *
     * This library is distributed in the hope that it will be useful,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top