- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 201 for 42 (0.01 sec)
-
guava-tests/test/com/google/common/hash/HashCodeTest.java
byte[] dest = new byte[4]; HashCode.fromInt(42).writeBytesTo(dest, 0, 4); assertTrue(Arrays.equals(HashCode.fromInt(42).asBytes(), dest)); } public void testLongWriteBytesTo() { byte[] dest = new byte[8]; HashCode.fromLong(42).writeBytesTo(dest, 0, 8); assertTrue(Arrays.equals(HashCode.fromLong(42).asBytes(), dest)); } private static final HashCode HASH_ABCD =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
response.b[response.off] = 42; // Return byte value 42 } return null; } }).when(smbFile).send(any(SmbComReadAndX.class), any(SmbComReadAndXResponse.class)); int result = smbRandomAccessFile.read(); assertEquals(42, result); assertEquals(1, smbRandomAccessFile.getFilePointer()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
*/ @Test void encodeWithSpiedBufferCallsEncMethod() throws NdrException { NdrShort ns = new NdrShort(42); NdrBuffer spy = spy(new NdrBuffer(new byte[10], 0)); ns.encode(spy); // NdrShort passes its value (already masked to 0xFF) to enc_ndr_short verify(spy).enc_ndr_short(42); } /** * Verify that decode invokes NdrBuffer.dec_ndr_short. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
void testWriteParameterWordsZeroUTime() { SmbComClose close = new SmbComClose(42, 0L); byte[] buffer = new byte[6]; close.writeParameterWordsWireFormat(buffer, 0); // first two bytes encode fid 42 assertEquals((byte) 42, buffer[0]); assertEquals((byte) 0, buffer[1]); // remaining 4 bytes should all be 0xFF according to writeUTime
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
Function<String, @Nullable Integer> function = Functions.forMap(map, 42); assertEquals(1, function.apply("One").intValue()); assertEquals(42, function.apply("Two").intValue()); assertEquals(3, function.apply("Three").intValue()); assertNull(function.apply("Null")); new EqualsTester() .addEqualityGroup(function, Functions.forMap(map, 42)) .addEqualityGroup(Functions.forMap(map))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
docs/de/docs/advanced/templates.md
{% endraw %} ... wird die `id` angezeigt, welche dem „Kontext“-`dict` entnommen wird, welches Sie übergeben haben: ```Python {"id": id} ``` Mit beispielsweise einer ID `42` würde das wie folgt gerendert werden: ```html Item ID: 42 ``` ### Template-`url_for`-Argumente
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.6K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
```jinja Item ID: {{ id }} ``` {% endraw %} ...aparecerá o `id` obtido do "context" `dict` que você passou: ```Python {"id": id} ``` Por exemplo, dado um ID de valor `42`, aparecerá: ```html Item ID: 42 ``` ### Argumentos do `url_for` Você também pode usar `url_for()` dentro do template, ele recebe como argumentos os mesmos argumentos que seriam usados pela sua *path operation function*.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java
* well-tested. A purist would object to this, but what can I say, we're dirty cheaters. */ map.put(Integer.class, new Integer(5)); assertThrows(ClassCastException.class, () -> map.put(Double.class, new Long(42))); // Won't compile: map.put(String.class, "x"); } public void testPutAndGetInstance() { assertNull(map.putInstance(Integer.class, new Integer(5)));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 18:34:30 UTC 2025 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
rawtypeToWildcard(MinMaxPriorityQueue.maximumSize(42)).create(); assertEquals(11, queue.capacity()); assertEquals(42, queue.maximumSize); checkNatural(queue); } public void testCreation_comparator_maximumSize() { MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).maximumSize(42).create(); assertEquals(11, queue.capacity());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java
assertEquals("line 42", problem.getLocation()); problem = new DefaultProblem(null, null, null, -1, 127, null); assertEquals("column 127", problem.getLocation()); problem = new DefaultProblem(null, null, "SOURCE", 42, 127, null); assertEquals("SOURCE, line 42, column 127", problem.getLocation()); } @Test
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0)