- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for 01234 (0.02 sec)
-
src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java
public class ContentOutputStreamTest { @Test public void inMemory() throws IOException { ContentOutputStream cos = new ContentOutputStream(10, Curl.tmpDir); cos.write(new byte[] { 0, 1, 2, 3, 4 }); assertFalse(cos.done); assertTrue(cos.isInMemory()); cos.close(); assertFalse(cos.done); } @Test public void inFile() throws IOException {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat May 10 01:44:04 UTC 2025 - 2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
smbRandomAccessFile.write(42); assertEquals(1, smbRandomAccessFile.getFilePointer()); } @Test void testWriteByteArray() throws SmbException { byte[] testData = new byte[] { 0, 1, 2, 3, 4 }; // Mock the write operation doAnswer(new Answer<Void>() { @Override public Void answer(InvocationOnMock invocation) throws Throwable {
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/util/transport/TransportTest.java
void shouldIdentifyFailedStates() { // Failed states: 5=disconnecting, 6=disconnected/invalid int[] failedStates = { 5, 6 }; int[] nonFailedStates = { 0, 1, 2, 3, 4 }; for (int state : failedStates) { transport.setState(state); assertTrue(transport.isFailed(), "State " + state + " should be failed"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/bytes/reader_test.go
{seek: io.SeekStart, off: 1 << 33, wantpos: 1 << 33, readerr: io.EOF}, {seek: io.SeekCurrent, off: 1, wantpos: 1<<33 + 1, readerr: io.EOF}, {seek: io.SeekStart, n: 5, want: "01234"}, {seek: io.SeekCurrent, n: 5, want: "56789"}, {seek: io.SeekEnd, off: -1, n: 1, wantpos: 9, want: "9"}, } for i, tt := range tests { pos, err := r.Seek(tt.off, tt.seek) if err == nil && tt.seekerr != "" {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BigDecimalConversionUtilTest.java
assertEquals(0, new BigDecimal("0.123").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.123D)))); assertEquals(0, new BigDecimal("0.0123").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.0123D)))); assertEquals(0, new BigDecimal("0.00123").compareTo(BigDecimalConversionUtil.toBigDecimal(Double.valueOf(0.00123D))));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
// Test different sizes assertEquals("00", Hexdump.toHexString(0, 2)); assertEquals("FF", Hexdump.toHexString(255, 2)); assertEquals("1234", Hexdump.toHexString(0x1234, 4)); } @Test @DisplayName("Should convert long to hex string with padding") void testLongToHexString() { // Test various long values
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
} } /** * Test that the constructor initializes all fields correctly */ @Test public void testConstructor() { // Arrange int fid = 0x1234; int offset = 100; int remaining = 50; byte[] buffer = new byte[100]; int off = 10; int len = 40; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/FunnelsTest.java
assertNullsThrowException(Funnels.stringFunnel(charset)); } } public void testForInts() { Integer value = 1234; PrimitiveSink primitiveSink = mock(PrimitiveSink.class); Funnels.integerFunnel().funnel(value, primitiveSink); verify(primitiveSink).putInt(1234); } public void testForInts_null() { assertNullsThrowException(Funnels.integerFunnel()); } public void testForLongs() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex_test.go
"", }, { "simple", "1 (a)", "1.(.a.)", }, { "simple define", lines( "#define A 1234", "A", ), "1234.\n", }, { "define without value", "#define A", "", }, { "macro without arguments", "#define A() 1234\n" + "A()\n", "1234.\n", }, { "macro with just parens as body", "#define A () \n" + "A\n", "(.).\n", }, {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
void testWriteParametersWireFormat() { int level = 0x1234; Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level); byte[] buf = newBuffer(10); int written = cmd.writeParametersWireFormat(buf, 0); assertEquals(2, written, "writeParametersWireFormat should write exactly 2 bytes"); // Verify little-endian encoding (0x1234 -> 0x34 0x12)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0)