Skip to content

Commit

Permalink
Add more self-tests for extension lookups
Browse files Browse the repository at this point in the history
(Check for one of the first and one of the last extensions.)
  • Loading branch information
lpereira committed May 23, 2024
1 parent 12a77f5 commit 4f96154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/lwan-tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ void lwan_tables_init(void)
"text/javascript"));
assert(streq(lwan_determine_mime_type_for_file_name(".BZ2"),
"application/x-bzip2"));
assert(streq(lwan_determine_mime_type_for_file_name(".z1"),
"application/x-zmachine"));
assert(streq(lwan_determine_mime_type_for_file_name(".asm"),
"text/x-asm"));
}

LWAN_SELF_TEST(status_codes)
Expand Down

0 comments on commit 4f96154

Please sign in to comment.