Skip to content

Commit 8c113f8

Browse files
Make string matcher for libexpr texts like others
Forgot to print in one case Co-authored-by: Aspen Smith <[email protected]>
1 parent cbe8ec7 commit 8c113f8

File tree

1 file changed

+1
-0
lines changed
  • src/libexpr-test-support/include/nix/expr/tests

1 file changed

+1
-0
lines changed

src/libexpr-test-support/include/nix/expr/tests/libexpr.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ MATCHER(IsAttrs, "")
104104
MATCHER_P(IsStringEq, s, fmt("The string is equal to \"%1%\"", s))
105105
{
106106
if (arg.type() != nString) {
107+
*result_listener << "Expected a string got " << arg.type();
107108
return false;
108109
}
109110
return arg.string_view() == s;

0 commit comments

Comments
 (0)