-
-
Notifications
You must be signed in to change notification settings - Fork 954
Closed
Description
This test will not work in 2025
fsnotify/internal/ztest/diff_test.go
Lines 139 to 150 in a9bc2e0
func TestDiffMatch(t *testing.T) { | |
now := time.Now().UTC() | |
year := fmt.Sprintf("%d", now.Year()) | |
tests := []struct { | |
inGot, inWant, want string | |
}{ | |
{"Hello", "Hello", ""}, | |
{"Hello", "He%(ANY)", ""}, | |
{"Hello " + year + "!", "Hello %(YEAR)!", ""}, | |
{"Hello " + year + "!", "Hello %(YEAR)", "\n--- have\n+++ want\n@@ -1 +1 @@\n-have Hello 2024!\n+want Hello 2024\n"}, |
Metadata
Metadata
Assignees
Labels
No labels