Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 419 for negate (0.04 seconds)

  1. src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java

            // Test case 2: Negative value
            int negativeValue = -54321;
            NdrLong ndrLongNegative = new NdrLong(negativeValue);
            assertEquals(negativeValue, ndrLongNegative.value, "Constructor should correctly initialize with a negative value.");
    
            // Test case 3: Zero value
            int zeroValue = 0;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            assertTrue(result.contains("indexNumber=0"));
        }
    
        @Test
        @DisplayName("Test toString with negative index number")
        void testToStringWithNegativeIndexNumber() throws SMBProtocolDecodingException {
            // Setup test data with negative value
            byte[] buffer = new byte[8];
            long expectedIndexNumber = -9999999999L;
            SMBUtil.writeInt8(expectedIndexNumber, buffer, 0);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  3. 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);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

            }
        }
    
        @Test
        void testNegativeValueHandling() {
            byte[] buffer = new byte[8];
    
            // Test negative values in writeInt4
            SMBUtil.writeInt4(-1L, buffer, 0);
            assertEquals(-1, SMBUtil.readInt4(buffer, 0));
    
            // Test negative values in writeInt8
            SMBUtil.writeInt8(-1L, buffer, 0);
            assertEquals(-1L, SMBUtil.readInt8(buffer, 0));
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode with negative values")
        void testDecodeWithNegativeValues() throws SMBProtocolDecodingException {
            // Prepare test data with negative values (when interpreted as signed)
            byte[] buffer = new byte[16];
            int bufferIndex = 0;
    
            // Set up negative values
            int namedPipeState = -1;
            int readDataAvailable = -100;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/CollectPreconditions.java

        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
      @CanIgnoreReturnValue
      static long checkNonnegative(long value, String name) {
        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 10 21:56:42 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

        @DisplayName("Test edge case with minimum/negative values")
        void testMinimumValues() {
            // Given
            long negativeMid = -1L;
            long negativeAsyncId = -1L;
    
            // When
            Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, negativeMid, negativeAsyncId);
    
            // Then
            assertEquals(negativeMid, request.getMid(), "Should handle negative MID");
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/CacheBuilder.java

       * high wastes memory.
       *
       * @return this {@code CacheBuilder} instance (for chaining)
       * @throws IllegalArgumentException if {@code initialCapacity} is negative
       * @throws IllegalStateException if an initial capacity was already set
       */
      @CanIgnoreReturnValue
      public CacheBuilder<K, V> initialCapacity(int initialCapacity) {
        checkState(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 51.9K bytes
    - Click Count (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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  10. src/bytes/reader.go

    }
    
    // ReadAt implements the [io.ReaderAt] interface.
    func (r *Reader) ReadAt(b []byte, off int64) (n int, err error) {
    	// cannot modify state - see io.ReaderAt
    	if off < 0 {
    		return 0, errors.New("bytes.Reader.ReadAt: negative offset")
    	}
    	if off >= int64(len(r.s)) {
    		return 0, io.EOF
    	}
    	n = copy(b, r.s[off:])
    	if n < len(b) {
    		err = io.EOF
    	}
    	return
    }
    
    // ReadByte implements the [io.ByteReader] interface.
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Jul 16 18:17:37 GMT 2024
    - 3.9K bytes
    - Click Count (0)
Back to Top