- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for testBytes (0.06 sec)
-
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
assertEquals(testBytes[i], buffer[i + 2]); } } @Test @DisplayName("Should implement equals correctly") void testEquals() { byte[] testBytes1 = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }; byte[] testBytes2 = Arrays.copyOf(testBytes1, 16);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/bytes/buffer_test.go
var testString string // test data for write tests var testBytes []byte // test data; same as testString but as a slice. type negativeReader struct{} func (r *negativeReader) Read([]byte) (int, error) { return -1, nil } func init() { testBytes = make([]byte, N) for i := 0; i < N; i++ { testBytes[i] = 'a' + byte(i%26) } testString = string(testBytes) } // Verify that contents of buf match the string s.Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Nov 14 19:01:17 UTC 2025 - 19.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
@GwtIncompatible // java.nio.charset.Charset public void testIsWellFormed_1Byte() { testBytes(1, EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT); } /** Tests that round tripping of all two byte permutations work. */ @GwtIncompatible // java.nio.charset.Charset public void testIsWellFormed_2Bytes() { testBytes(2, EXPECTED_TWO_BYTE_ROUNDTRIPPABLE_COUNT); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
import org.jspecify.annotations.NullUnmarked; /** * Tests for AbstractStreamingHasher. * * @author Dimitris Andreou */ @NullUnmarked public class AbstractStreamingHasherTest extends TestCase { public void testBytes() { Sink sink = new Sink(4); // byte order insignificant here byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; sink.putByte((byte) 1); sink.putBytes(new byte[] {2, 3, 4, 5, 6}); sink.putByte((byte) 7);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/DocsTest.kt
class DocsTestProject( model: CIBuildModel, stage: Stage, val os: Os, testJava: JvmCategory, testTypes: List<DocsTestType>, ) : Project({ id(asDocsTestId(model, os)) name = "Docs Test - ${testJava.version.toCapitalized()} ${os.asName()}" }) { val docsTests = testTypes.map { DocsTest(model, stage, os, testJava, it) } init { docsTests.forEach(this::buildType) } }
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Nov 18 02:29:43 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/Base64UtilTest.java
*/ public void testEncodeDecode_RoundTrip() throws Exception { // Test with ASCII text final String text = "Hello, World!"; final byte[] textBytes = text.getBytes("UTF-8"); final String encoded = Base64Util.encode(textBytes); final byte[] decoded = Base64Util.decode(encoded); assertEquals("Round trip should preserve data", text, new String(decoded, "UTF-8"));Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
@Test @DisplayName("Should not modify buffer beyond encoded area") void testEncodeDoesNotModifyBeyondArea() { // Given byte testByte = (byte) 0xFF; java.util.Arrays.fill(buffer, testByte); SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096); // When chunk.encode(buffer, startIndex); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
} @Test @DisplayName("Should not modify buffer beyond encoded area") void testEncodeDoesNotModifyBeyondArea() { // Given byte testByte = (byte) 0xEE; Arrays.fill(buffer, testByte); SrvCopychunk chunk = new SrvCopychunk(1, 2, 3); SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk); int expectedSize = HEADER_SIZE + CHUNK_SIZE;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0)