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:
parent
cbe8ec7bd7
commit
8c113f80f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue