ericw-tools/light/test_common.cc

12 lines
265 B
C++

#include <Catch2/catch.hpp>
#include <filesystem>
#include <string>
#include <common/cmdlib.hh>
TEST(common, StripFilename)
{
ASSERT_TRUE("/home/foo" == fs::path("/home/foo/bar.txt").parent_path());
ASSERT_TRUE("" == fs::path("bar.txt").parent_path());
}