SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST() [13/59]

SpicesTest::TEST ( FileLibraryTest ,
Exists  )

Testing Spices::FileLibrary::Exists.

Definition at line 17 of file FileLibrary_test.h.

17 {
18
20
21 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("premake5.lua"), true);
22 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("vendor/googletest/premake5.lua"), true);
23 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("src/main.cpp"), true);
24
25 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("src/main1.cpp"), false);
26 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("src/main2.cpp"), false);
27 EXPECT_EQ(Spices::FileLibrary::FileLibrary_Exists("src/main3.cpp"), false);
28 }
#define SPICESTEST_PROFILE_FUNCTION()
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.

References Spices::FileLibrary::FileLibrary_Exists().