- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testTimes (0.04 sec)
-
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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (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) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0)