#include <gtest/gtest.h>
#include "../common/dirs.h"
+#include "../common/filename.h"
TEST(CommonFunctions, GetUserDir){
#endif
+}
+
+TEST(CommonFunctions, CreateFilenamePath){
+
+ // Run the unit tests depending on the operating system being used.
+
+#if defined(__WIN32__)
+
+#elif defined(__APPLE__)
+
+#else
+
+ ASSERT_EQ("/test", CreateFilenamePath("", "test"));
+ ASSERT_EQ("/example/test", CreateFilenamePath("/example", "test"));
+ ASSERT_EQ("/home/meep/test", CreateFilenamePath("/home/meep", "test"));
+ ASSERT_EQ("/home/meep/moo/test", CreateFilenamePath("/home/meep/moo", "test"));
+ ASSERT_EQ("/home/meep/moo/yargh/test", CreateFilenamePath("/home/meep/moo/yargh", "test"));
+
+#endif
+
}
\ No newline at end of file