diff options
Diffstat (limited to 'test/cpp')
-rw-r--r-- | test/cpp/test_path_std.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/cpp/test_path_std.cpp b/test/cpp/test_path_std.cpp index 7b592d8..58e2a87 100644 --- a/test/cpp/test_path_std.cpp +++ b/test/cpp/test_path_std.cpp @@ -483,8 +483,11 @@ run() } for (const auto& relatives : lexical_relatives) { - const Path l = relatives.lhs ? Path{relatives.lhs} : Path{}; - const Path r = relatives.rhs ? Path{relatives.rhs} : Path{}; + assert(relatives.lhs); + assert(relatives.rhs); + + const Path l = Path{relatives.lhs}; + const Path r = Path{relatives.rhs}; assert(match( l.lexically_relative(r), |