Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 747 for negative (1.15 sec)

  1. 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) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/LogStreamTest.java

            assertEquals(1, LogStream.level);
    
            LogStream.setLevel(3);
            assertEquals(3, LogStream.level);
    
            LogStream.setLevel(10);
            assertEquals(10, LogStream.level);
    
            // Test negative level
            LogStream.setLevel(-1);
            assertEquals(-1, LogStream.level);
        }
    
        @Test
        void testGetInstanceWithoutSetInstance() {
            // Test getInstance when no instance has been set
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        });
                        // Sort the array in place by type, then member
                        // Note that Firefox is fine with a sort function returning any positive or negative number, but Chrome 
                        // requires 1 or -1 specifically and ignores higher or lower values.  This sort ought to remain consistent
                        // with the sort used by AbstractAcceptedApiChangesMaintenanceTask.
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

                    { Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE }, // Max values
                    { 1L, 2L, 3L, 4L }, // Small values
                    { -1L, -2L, -3L, -4L } // Negative values (though unusual for file times)
            };
    
            for (long[] times : timeValues) {
                // Given
                FileBasicInfo info = new FileBasicInfo(times[0], // create time
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // When & Then
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readBytesWireFormat(buffer, 0));
            }
    
            @Test
            @DisplayName("Should handle negative structure size as unsigned")
            void testReadBytesWireFormatNegativeAsUnsigned() {
                // Given
                byte[] buffer = new byte[10];
                // Write -1 which will be read as 65535 unsigned
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should handle negative offset")
            void testNegativeOffset() {
                request.setOffset(-1L);
                request.setData(new byte[10], 0, 10);
    
                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                // Negative value should be written as-is (interpreted as unsigned by receiver)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            }
    
            @Test
            @DisplayName("Should handle negative status codes")
            void testNegativeStatusCode() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[256];
                System.arraycopy(SMBUtil.SMB2_HEADER, 0, buffer, 0, 4);
                SMBUtil.writeInt4(-1, buffer, 8); // negative status
    
                // Write error response structure at offset 64
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java

                    .toList();
    
            private Impl(int maxCountLimit, Predicate<? super P> filter) {
                if (maxCountLimit < 0) {
                    throw new IllegalArgumentException("maxCountLimit must be non-negative");
                }
                this.maxCountLimit = maxCountLimit;
                this.totalCount = new AtomicInteger();
                this.counters = new ConcurrentHashMap<>();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jul 18 17:30:19 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top