Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 420 for negate (0.04 sec)

  1. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                    buffer[i] = (byte) 0xFF;
                }
    
                assertDoesNotThrow(() -> {
                    info.decode(buffer, 0, buffer.length);
                });
    
                // Capacity should not be negative (overflow check)
                assertTrue(info.getCapacity() != 0);
            }
    
            @Test
            @DisplayName("Should decode efficiently for large buffers")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses_test.go

    func TestCreateServerEndpoints(t *testing.T) {
    	testCases := []struct {
    		serverAddr string
    		args       []string
    		success    bool
    	}{
    		// Invalid input.
    		{"", []string{}, false},
    		// Range cannot be negative.
    		{":9000", []string{"/export1{-1...1}"}, false},
    		// Range cannot start bigger than end.
    		{":9000", []string{"/export1{64...1}"}, false},
    		// Range can only be numeric.
    		{":9000", []string{"/export1{a...z}"}, false},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

                assertEquals(statusCode, exception.getStatusCode());
            }
        }
    
        public void test_statusCode_negativeValue() {
            // Test with negative status code
            int statusCode = -1;
            String message = "Invalid status";
    
            WebApiException exception = new WebApiException(statusCode, message);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            Before new features get added to Guava, we really want to be sure that it's for a use case
            that actually comes up in the real world. We want to hear the real-world use case so the
            community can discuss and debate whether this feature is actually the *best* way to address
            the real use case, or whether or not a different abstraction might be more appropriate.
    
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Nov 17 18:47:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/GraphBuilder.java

        this.allowsSelfLoops = allowsSelfLoops;
        return this;
      }
    
      /**
       * Specifies the expected number of nodes in the graph.
       *
       * @throws IllegalArgumentException if {@code expectedNodeCount} is negative
       */
      @CanIgnoreReturnValue
      public GraphBuilder<N> expectedNodeCount(int expectedNodeCount) {
        this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
        return this;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      // https://github.com/google/guava/issues/1781
      public void testOptimalNumOfHashFunctionsRounding() {
        assertEquals(5, BloomFilter.optimalNumOfHashFunctions(0.03));
      }
    
      /** Tests that we always get a non-negative optimal size. */
      public void testOptimalSize() {
        for (int n = 1; n < 1000; n++) {
          for (double fpp = Double.MIN_VALUE; fpp < 1.0; fpp += 0.001) {
            assertTrue(BloomFilter.optimalNumOfBits(n, fpp) >= 0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle negative offset")
            void testNegativeOffset() {
                request.setOffset(-1L);
                request.setReadLength(1024);
    
                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                // Negative value should be written as-is (interpreted as unsigned by receiver)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

         *     case no change will be made.
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code element} is null
         * @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation
         *     would result in more than {@link Integer#MAX_VALUE} occurrences of the element
         */
        @CanIgnoreReturnValue
        public Builder<E> addCopies(E element, int occurrences) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

        if (localInputFuture != null) {
          String message = "inputFuture=[" + localInputFuture + "]";
          if (localTimer != null) {
            long delay = localTimer.getDelay(MILLISECONDS);
            // Negative delays look confusing in an error message
            if (delay > 0) {
              message += ", remaining delay=[" + delay + " ms]";
            }
          }
          return message;
        }
        return null;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        void testTimeReadWriteZero() {
            byte[] buffer = new byte[8];
            ServerMessageBlock.writeTime(0, buffer, 0);
            // When zero is written, it stays as zero in buffer
            // When read back, it converts to negative Unix time due to Windows FileTime conversion
            long expectedTime = -SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601;
            assertEquals(expectedTime, ServerMessageBlock.readTime(buffer, 0));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top