- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 186 for Chars (0.02 seconds)
-
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
@Test @DisplayName("Test size calculation with short filename") void testSizeWithShortFilename() { FileRenameInformation2 info = new FileRenameInformation2("test.txt", false); // 20 bytes fixed + 2 * 8 chars = 20 + 16 = 36 assertEquals(36, info.size()); } @Test @DisplayName("Test size calculation with long filename") void testSizeWithLongFilename() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
StringBuilder builder = new StringBuilder("abc"); List<Character> chars = charactersOf(builder); assertEquals(asList('a', 'b', 'c'), chars); builder.append("def"); assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars); builder.deleteCharAt(5); assertEquals(asList('a', 'b', 'c', 'd', 'e'), chars); } public void testNewArrayListEmpty() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 35.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
assertEquals(0x0101, actualInfoLevel); } @Test void testWriteParametersWithSpecialCharacters() { String specialPath = "test/file with spaces and $pecial #chars!.txt"; trans2QueryPathInfo = new Trans2QueryPathInformation(config, specialPath, TEST_INFO_LEVEL); byte[] buffer = new byte[512]; int written = trans2QueryPathInfo.writeParametersWireFormat(buffer, 0);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
@CsvSource({ "a.txt", "very_long_filename_with_many_characters_to_test_buffer_handling.docx", "file with spaces.pdf", "文件.txt", // Unicode filename "file-with-special-chars!@#$%^&().bin" }) void testDecodeWithVariousFileNames(String fileName) throws SMBProtocolDecodingException { byte[] buffer = createValidNotificationBuffer(fileName, FileNotifyInformation.FILE_ACTION_ADDED);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) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
private fun largeHeaders(): List<Header> { val nameValues = arrayOfNulls<String>(32) val chars = CharArray(512) var i = 0 while (i < nameValues.size) { Arrays.fill(chars, i.toChar()) val string = String(chars) nameValues[i++] = string nameValues[i++] = string } return headerEntries(*nameValues) }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 28.1K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java
assertEquals(longId.toString(), testRule.getRuleId()); // Special characters in rule ID testRule.setRuleId("rule-id_with.special@chars#123"); assertEquals("rule-id_with.special@chars#123", testRule.getRuleId()); // Unicode characters testRule.setRuleId("ルール日本語"); assertEquals("ルール日本語", testRule.getRuleId()); // Whitespace
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Wed Sep 03 14:42:53 GMT 2025 - 21.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
// Less than 65,536 bytes, because we binary search on a 14-bit index with a stride of 4 bytes. assertThat(compactTable.ranges.length).isLessThan((1 shl 14) * 4) // Less than 16,384 chars, because we index on a 14-bit index in the ranges table. assertThat(compactTable.mappings.length).isLessThan(1 shl 14) // Confirm the data strings are ASCII.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.9K bytes - Click Count (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
*/ public PercentEscaper(String safeChars, boolean plusForSpace) { // TODO(dbeaumont): Switch to static factory methods for creation now that class is final. // TODO(dbeaumont): Support escapers where alphanumeric chars are not safe. checkNotNull(safeChars); // eager for GWT. // Avoid any misunderstandings about the behavior of this escaper if (safeChars.matches(".*[0-9A-Za-z].*")) { throw new IllegalArgumentException(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 8.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParserTest.java
public void test_analyzeTextWithLargeContent() throws Exception { SuggestAnalyzer analyzer = suggester.settings().analyzer().new DefaultContentsAnalyzer(); // Create text larger than maxAnalyzedContentLength (1000 chars by default) StringBuilder largeText = new StringBuilder(); for (int i = 0; i < 2000; i++) { largeText.append("テスト "); }
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 12.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source)); CharSource concatenated = CharSource.concat(cycle); String expected = "abcdabcd"; // read the first 8 chars manually, since there's no equivalent to ByteSource.slice // TODO(cgdecker): Add CharSource.slice? StringBuilder builder = new StringBuilder();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 11.5K bytes - Click Count (0)