(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestNormalizeForMatching_RealWorldPairs(t *testing.T) { |
| 142 | // Test that real-world release name variations normalize to the same value |
| 143 | pairs := []struct { |
| 144 | name string |
| 145 | input1 string |
| 146 | input2 string |
| 147 | }{ |
| 148 | { |
| 149 | "shogun macron vs plain", |
| 150 | "Shōgun S01 1080p", |
| 151 | "Shogun S01 1080p", |
| 152 | }, |
| 153 | { |
| 154 | "bobs burgers apostrophe", |
| 155 | "Bob's Burgers S01", |
| 156 | "Bobs Burgers S01", |
| 157 | }, |
| 158 | { |
| 159 | "curly vs straight apostrophe", |
| 160 | "Haibara's Teenage New Game+", |
| 161 | "Haibara\u2019s Teenage New Game+", |
| 162 | }, |
| 163 | { |
| 164 | "pokemon accent", |
| 165 | "Pokémon Journeys", |
| 166 | "Pokemon Journeys", |
| 167 | }, |
| 168 | { |
| 169 | "spider-man hyphen", |
| 170 | "Spider-Man Homecoming", |
| 171 | "Spider Man Homecoming", |
| 172 | }, |
| 173 | { |
| 174 | "csi colon", |
| 175 | "CSI: Miami S01", |
| 176 | "CSI Miami S01", |
| 177 | }, |
| 178 | { |
| 179 | "comma title separator", |
| 180 | "Signal, Bloom S01", |
| 181 | "Signal Bloom S01", |
| 182 | }, |
| 183 | { |
| 184 | "leon accent and colon", |
| 185 | "Léon: The Professional", |
| 186 | "Leon The Professional", |
| 187 | }, |
| 188 | { |
| 189 | "motley crue umlauts", |
| 190 | "Mötley Crüe The Dirt", |
| 191 | "Motley Crue The Dirt", |
| 192 | }, |
| 193 | { |
| 194 | "naruto macron", |
| 195 | "Naruto Shippūden", |
| 196 | "Naruto Shippuden", |
| 197 | }, |
| 198 | { |
nothing calls this directly
no test coverage detected