Skip to content

Commit

Permalink
A bit of loggic in the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Jan 14, 2024
1 parent 06bc83b commit 84287fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Utility/tests/Tags_UT.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "Tags.h"
#include "UnitTests_main.h"
#include <set>
#include <fmt/core.h>

using nc::utility::Tags;

Expand Down Expand Up @@ -210,7 +211,7 @@
{label("Home"), Tags::Color::None}});
}

TEST_CASE(PREFIX "Can read from a file, set via NSURLTagNamesKey")
TEST_CASE(PREFIX "Can read from a file")
{
TempTestDir dir;
const auto path = dir.directory / "f.txt";
Expand All @@ -237,6 +238,7 @@
{NSURLLabelNumberKey, @(7), "Orange", Tags::Color::Orange},
};
for( auto &tc : tcs ) {
INFO(fmt::format("{} - {} - {}", tc.key.UTF8String, tc.expected_label, std::to_underlying(tc.expected_color)));
close(open(path.c_str(), O_CREAT, S_IRUSR | S_IWUSR));
NSURL *url = [[NSURL alloc] initFileURLWithFileSystemRepresentation:path.c_str()
isDirectory:false
Expand Down

0 comments on commit 84287fd

Please sign in to comment.