- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 601 for negative (0.08 sec)
-
utils/utils_test.go
input: []int{1, 2, 3}, trimLen: 1, expected: []int{1, 2}, }, { name: "Empty slice", input: []int{}, trimLen: 2, expected: []int{}, }, { name: "Negative trim length (should be treated as zero)", input: []int{1, 2, 3}, trimLen: -1, expected: []int{1, 2, 3}, }, } for _, testcase := range tests { t.Run(testcase.name, func(t *testing.T) {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
readParams.setAccessible(true); assertEquals(0, readParams.invoke(cancel, emptyArray, 0)); } @Test @DisplayName("Should handle negative MID values") void testWithNegativeMid() throws Exception { // Given Configuration config = mock(Configuration.class); when(config.getPid()).thenReturn(12345);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PurgeThumbnailJobTest.java
assertSame(purgeThumbnailJob, result); // Test value was not changed assertEquals(originalExpiry, purgeThumbnailJob.getExpiry()); } // Test expiry setter with negative value (should not change) public void test_expiry_negativeValue() { long originalExpiry = purgeThumbnailJob.getExpiry(); PurgeThumbnailJob result = purgeThumbnailJob.expiry(-1000L);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SessionServicePacket.java
static final int SESSION_REQUEST = 0x81; /** * NetBIOS positive session response packet type. */ public static final int POSITIVE_SESSION_RESPONSE = 0x82; /** * NetBIOS negative session response packet type. */ public static final int NEGATIVE_SESSION_RESPONSE = 0x83; static final int SESSION_RETARGET_RESPONSE = 0x84; static final int SESSION_KEEP_ALIVE = 0x85;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosErrorTest.java
void messagesOutOfBoundsThrows() { // Arrange String[] msgs = DosError.DOS_ERROR_MESSAGES; // Act & Assert: negative index assertThrows(ArrayIndexOutOfBoundsException.class, () -> { @SuppressWarnings("unused") String s = msgs[-1]; }); // Act & Assert: index equal to length
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.9K bytes - Viewed (0) -
src/bufio/bufio.go
ErrInvalidUnreadRune = errors.New("bufio: invalid use of UnreadRune") ErrBufferFull = errors.New("bufio: buffer full") ErrNegativeCount = errors.New("bufio: negative count") ) // Buffered input. // Reader implements buffering for an io.Reader object. // A new Reader is created by calling [NewReader] or [NewReaderSize];
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 22K bytes - Viewed (0) -
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) -
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 Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jul 18 17:30:19 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessEnvTest.java
assertNotNull(e); } } // Test various numeric values for time adjust public void xtest_getTimeAdjustTimeMillisAsLong_variousValues() { // Test negative value FessEnv.SimpleImpl negativeEnv = new FessEnv.SimpleImpl() { protected Properties prepareProperties() { Properties props = new Properties();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
* This is either a mapping decision or the length of the mapped output, according to this table: * * ``` * 0..63 : Length of the UTF-16 sequence that this range maps to. The offset is b2b3. * 64..79 : Offset by a fixed negative offset. The bottom 4 bits of b1 are the top 4 bits of the offset. * 80..95 : Offset by a fixed positive offset. The bottom 4 bits of b1 are the top 4 bits of the offset. * 119 : Ignored. * 120 : Valid.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 9K bytes - Viewed (0)