(t *testing.T)
| 110 | } |
| 111 | |
| 112 | func TestIndex_PathNormalization(t *testing.T) { |
| 113 | t.Parallel() |
| 114 | idx := filefinder.NewIndex() |
| 115 | idx.Add("Foo/Bar.go", 0) |
| 116 | // Should be findable with lowercase. |
| 117 | if !idx.Has("foo/bar.go") { |
| 118 | t.Fatal("expected case-insensitive Has") |
| 119 | } |
| 120 | } |