This commit is contained in:
Brandon Thomas committed 2026-03-15 21:47:37 -04:00
1 parent ef7bd66176
commit a3e1d6da64
2 files changed
+8

No files matched your search

+2
View File
@@ -17,9 +17,11 @@ path = "src/lib.rs"
workspace-build-acceleration.workspace = true
# Internal
# NB: DO NOT ALLOW ANY OTHER DEPS - THIS IS URL LOGIC ONLY
# (None)
# External
# NB: DO NOT ALLOW ANY OTHER DEPS - THIS IS URL LOGIC ONLY
url.workspace = true
[dev-dependencies]
@@ -109,6 +109,12 @@ mod tests {
assert_eq!(ext.unwrap().without_period(), "foobar");
}
#[test]
fn all_extracts_unknown_extension_all_caps() {
let ext = extract_extension_from_url_str("https://example.com/file.FOOBAR", &ExtractExtensions::All);
assert_eq!(ext.unwrap().without_period(), "foobar");
}
#[test]
fn all_lowercases() {
let ext = extract_extension_from_url_str("https://example.com/file.PNG", &ExtractExtensions::All);