mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-20 22:41:38 +02:00
ExtensionMimeTablesTest fixes the outputs of extFromFileName, extFromMimeType, SafDownloadHandler.normalizeExt and mimeTypeForExt, and NativeFinalizationPolicy.normalizeExtension for every table entry plus unknown, blank, uppercase and dotted inputs. The expected values come from reading the code; the tables are not inverse maps, so each keeps its own entries. The two normalizers trim, lowercase with Locale.ROOT and add one leading dot, with "" for blank input; checking the dot before or after lowercasing cannot differ. normalizeExt now delegates to normalizeExtension, which becomes internal. The test passed against both original bodies before the delegation.