1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 17:29:36 +01:00

Make string matcher for libexpr texts like others

Forgot to print in one case

Co-authored-by: Aspen Smith <root@gws.fyi>
This commit is contained in:
John Ericson 2025-11-10 00:54:20 -05:00
parent cbe8ec7bd7
commit 8c113f80f3

View file

@ -104,6 +104,7 @@ MATCHER(IsAttrs, "")
MATCHER_P(IsStringEq, s, fmt("The string is equal to \"%1%\"", s))
{
if (arg.type() != nString) {
*result_listener << "Expected a string got " << arg.type();
return false;
}
return arg.string_view() == s;