Skip to content

Commit

Permalink
Added til::rle test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed May 10, 2021
1 parent a754940 commit 96d899d
Show file tree
Hide file tree
Showing 3 changed files with 573 additions and 878 deletions.
10 changes: 10 additions & 0 deletions src/inc/consoletaeftemplates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ namespace WEX::TestExecution
public:
static WEX::Common::NoThrowString ToString(const std::string_view& view)
{
if (view.empty())
{
return L"<empty>";
}

WEX::Common::NoThrowString s;
s.AppendFormat(L"%.*hs", gsl::narrow_cast<unsigned int>(view.size()), view.data());
return s;
Expand All @@ -586,6 +591,11 @@ namespace WEX::TestExecution
public:
static WEX::Common::NoThrowString ToString(const std::wstring_view& view)
{
if (view.empty())
{
return L"<empty>";
}

return WEX::Common::NoThrowString(view.data(), gsl::narrow<int>(view.size()));
}
};
Expand Down
Loading

1 comment on commit 96d899d

@github-actions

This comment was marked as outdated.

Please sign in to comment.