mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
test
This commit is contained in:
1 parent
ef7bd66176
commit
a3e1d6da64
2 files changed
+8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user