- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testTimes (0.16 seconds)
-
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
// Test setting timestamp 1 hour ago long testTime = System.currentTimeMillis() - 3600000; file.setLastModified(testTime); long retrievedTime = file.lastModified(); // Allow for reasonable precision differences assertTrue(Math.abs(retrievedTime - testTime) < 10000, "Set timestamp should be approximately correct"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
src/bytes/bytes_test.go
{a: "abc\r\nabc", b: []string{"abc\r\n", "abc"}}, {a: "abc\r\n", b: []string{"abc\r\n"}}, {a: "\nabc", b: []string{"\n", "abc"}}, {a: "\nabc\n\n", b: []string{"\n", "abc\n", "\n"}}, } func TestLines(t *testing.T) { for _, s := range linesTests { result := sliceOfString(slices.Collect(Lines([]byte(s.a)))) if !slices.Equal(result, s.b) { t.Errorf(`slices.Collect(Lines(%q)) = %q; want %q`, s.a, result, s.b) }Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0)