diff options
Diffstat (limited to 'test/plugins')
| -rw-r--r-- | test/plugins/filesystem/FileLocatorTest.cpp | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/test/plugins/filesystem/FileLocatorTest.cpp b/test/plugins/filesystem/FileLocatorTest.cpp index 75d9f33..87a9223 100644 --- a/test/plugins/filesystem/FileLocatorTest.cpp +++ b/test/plugins/filesystem/FileLocatorTest.cpp @@ -142,6 +142,17 @@ TEST(FileLocator, locate)  	assert_not_located(locator, "c.txt", "", ResourceType::SCRIPT);  } +TEST(FileLocator, locateAbsolute){ +	FileLocator locator; +	// construct the absolute path by utilizing SpecialPaths and  +	fs::path testdataDir {SpecialPaths::getDebugTestdataDir()}; +	fs::path absolute = fs::canonical(testdataDir); +	absolute /= "filesystem"; +	absolute /= "a.txt"; +	Resource resA; +	ASSERT_TRUE(locator.locate(resA, absolute.string())); +} +  TEST(FileLocator, locateRelative)  {  	FileLocator locator;  | 
