From 033916a4f9d3fd19659a3bc8c5737f52d327b3d4 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Thu, 7 Apr 2022 15:13:33 +0200 Subject: refactor FileRoot::DirectoryEntries ... to foster the implementation of the built-in target "TREE" --- test/buildtool/file_system/file_root.test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/buildtool/file_system/file_root.test.cpp') diff --git a/test/buildtool/file_system/file_root.test.cpp b/test/buildtool/file_system/file_root.test.cpp index b0dad5d1..b776b5e3 100644 --- a/test/buildtool/file_system/file_root.test.cpp +++ b/test/buildtool/file_system/file_root.test.cpp @@ -64,12 +64,12 @@ void TestFileRootReadEntries(FileRoot const& root, auto entries = root.ReadDirectory(path); CHECK_FALSE(entries.Empty()); - CHECK(entries.Contains("foo")); - CHECK(entries.Contains("bar")); + CHECK(entries.ContainsFile("foo")); + CHECK(entries.ContainsFile("bar")); if (has_baz) { - CHECK(entries.Contains("baz")); + CHECK_FALSE(entries.ContainsFile("baz")); } - CHECK_FALSE(entries.Contains("does_not_exist")); + CHECK_FALSE(entries.ContainsFile("does_not_exist")); } void TestFileRootReadDirectory(FileRoot const& root) { -- cgit v1.2.3