diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-17 22:34:57 +0100 |
| commit | 6232d13f5321b87ddf12a1aa36b4545da45f173d (patch) | |
| tree | 23f3316470a14136debd9d02f9e920ca2b06f4cc /test/test_mime_types.cc | |
Travel3: Simple image and video display site
Reads the images and videos from filesystem and builds a site in
memroy.
Diffstat (limited to 'test/test_mime_types.cc')
| -rw-r--r-- | test/test_mime_types.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_mime_types.cc b/test/test_mime_types.cc new file mode 100644 index 0000000..383d464 --- /dev/null +++ b/test/test_mime_types.cc @@ -0,0 +1,12 @@ +#include "common.hh" + +#include "mime_types.hh" + +#include <gtest/gtest.h> + +TEST(mime_types, sanity) { + EXPECT_EQ("text/css", mime_types::from_extension("css")); + EXPECT_EQ("image/jpeg", mime_types::from_extension("jpeg")); + EXPECT_EQ("image/jpeg", mime_types::from_extension("jpg")); + EXPECT_EQ("", mime_types::from_extension("")); +} |
