fs::absolute, units, Makefile fixes

This commit is contained in:
pvoid committed 2025-11-30 23:59:27 +03:00
1 parent 8eac1e7846
commit ccbfdbb535
4 files changed
+20 -19

No files matched your search

+8
View File
@@ -77,6 +77,14 @@ TEST(PathFileName)
ASSERT_EQUAL(fs::path(TestData::fs::sysPath).filename().string(), "sys");
}
TEST(PathAbsolute)
{
ASSERT_EQUAL(fs::absolute(TestData::fs::emptyPath).string(), TestData::fs::emptyPath);
ASSERT_EQUAL(fs::absolute(TestData::fs::calcPath).string(), TestData::fs::calcPath);
ASSERT_EQUAL(fs::absolute(TestData::fs::calcFileName).string(), (fs::current_path() / TestData::fs::calcFileName).string());
ASSERT_EQUAL(fs::absolute(TestData::fs::rootPath).string(), TestData::fs::rootPath);
}
// just for cli output
TEST(ScanDirectory)
{