mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 01:39: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))
|
MATCHER_P(IsStringEq, s, fmt("The string is equal to \"%1%\"", s))
|
||||||
{
|
{
|
||||||
if (arg.type() != nString) {
|
if (arg.type() != nString) {
|
||||||
|
*result_listener << "Expected a string got " << arg.type();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return arg.string_view() == s;
|
return arg.string_view() == s;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue