Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 601 for negative (0.06 sec)

  1. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            // Test with max int value (unsigned interpretation)
            buffer.putInt(0, 0xFFFFFFFF);
            assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should read max ULong correctly.");
    
            // Test with a negative int (should be interpreted as unsigned positive)
            buffer.putInt(0, -1); // -1 is 0xFFFFFFFF
            assertEquals(0xFFFFFFFF, NtlmMessage.readULong(data, 0), "Should interpret -1 as unsigned max ULong.");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        @DisplayName("writeUShort handles negative values as unsigned")
        void testWriteUShortNegative() {
            byte[] dest = new byte[2];
            NtlmMessage.writeUShort(dest, 0, -2);
            assertArrayEquals(new byte[] { -2, -1 }, dest, "Negative short should be encoded unsigned");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/WinErrorTest.java

        }
    
        @Test
        @DisplayName("Codes: all non-negative and unique")
        void codes_are_non_negative_and_unique() {
            // Edge checks: ensure there are no negative or duplicate codes
            Set<Integer> seen = new HashSet<>();
            for (int c : WinError.WINERR_CODES) {
                assertTrue(c >= 0, "Code should be non-negative: " + c);
                assertTrue(seen.add(c), "Duplicate code detected: " + c);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. cmd/dummy-data-generator_test.go

    // f(NewDummyDataGen(100, 0)) == f(NewDummyDataGen(50, 0)) + f(NewDummyDataGen(50, 50))
    func NewDummyDataGen(totalLength, skipOffset int64) io.ReadSeeker {
    	if totalLength < 0 {
    		panic("Negative length passed to DummyDataGen!")
    	}
    	if skipOffset < 0 {
    		panic("Negative rotations are not allowed")
    	}
    
    	skipOffset %= int64(len(alphabets))
    	const multiply = 100
    	as := bytes.Repeat(alphabets, multiply)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      private void assertSetCountNegativeOldCount() {
        try {
          getMultiset().setCount(e3(), -1, 1);
          fail("calling setCount() with a negative oldCount should throw IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // Negative oldCount.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addSupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                assertEquals(0, ndrShort.value);
            }
    
            @Test
            @DisplayName("Should decode negative value correctly")
            void testDecodeNegativeValue() throws NdrException {
                // Given: NdrShort and mock returning negative value
                int negativeValue = -1;
                NdrShort ndrShort = new NdrShort(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/entity/SearchRenderDataTest.java

            assertEquals(10, searchRenderData.getPageSize());
    
            searchRenderData.setPageSize(100);
            assertEquals(100, searchRenderData.getPageSize());
    
            // Test with negative value
            searchRenderData.setPageSize(-1);
            assertEquals(-1, searchRenderData.getPageSize());
        }
    
        public void test_setAndGetCurrentPageNumber() {
            // Test with zero
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/ServerResponseValidator.java

                bufferOverflowsPrevented.incrementAndGet();
                throw new SmbException("Negative offset: " + offset);
            }
    
            if (length < 0) {
                failedValidations.incrementAndGet();
                bufferOverflowsPrevented.incrementAndGet();
                throw new SmbException("Negative length: " + length);
            }
    
            // Check for integer overflow
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(22, bytesDecoded);
            assertEquals(minLong, fileStandardInfo.getSize());
        }
    
        @Test
        @DisplayName("Test decode with negative values")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with negative values
            byte[] buffer = new byte[22];
            long negativeLong = -1L;
            int negativeInt = -1;
    
            // Encode test data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/bytes/buffer.go

    // another n bytes. After Grow(n), at least n bytes can be written to the
    // buffer without another allocation.
    // If n is negative, Grow will panic.
    // If the buffer can't grow it will panic with [ErrTooLarge].
    func (b *Buffer) Grow(n int) {
    	if n < 0 {
    		panic("bytes.Buffer.Grow: negative count")
    	}
    	m := b.grow(n)
    	b.buf = b.buf[:m]
    }
    
    // Write appends the contents of p to the buffer, growing the buffer as
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 17:38:56 UTC 2025
    - 16K bytes
    - Viewed (0)
Back to top