const std = @import("std");
const mime = @import("mime");
test "html smoke test" {
const mime_type = mime.extension_map.get(".html").?;
try std.testing.expectEqualStrings("text/html", @tagName(mime_type));
}
test "bogus extension" {
try std.testing.expect(mime.extension_map.get(".sillybogo") == null);
}
-
Notifications
You must be signed in to change notification settings - Fork 4
zig package for mapping extensions to mime types
License
andrewrk/mime
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
zig package for mapping extensions to mime types
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published