Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for the GetMIME function.
[xestiaab/.git] / source / tests / xestiaab_common.h
index 3dafa80..8d60863 100644 (file)
@@ -19,6 +19,7 @@
 #include <gtest/gtest.h>
 #include "../common/dirs.h"
 #include "../common/filename.h"
+#include "../common/mime.h"
 
 TEST(CommonFunctions, GetUserDir){
        
@@ -224,4 +225,11 @@ TEST(CommonFunctions, CreateFilenamePath){
        
 #endif
        
+}
+
+TEST(CommonFunctions, GetMIME){
+       
+       ASSERT_EQ("text/plain", GetMIME("TextMIMEExample.txt"));
+       ASSERT_EQ("image/png", GetMIME("PictureMIMEExample.png"));
+       
 }
\ No newline at end of file
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy