mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
tests/lib-test: correctly print expected/result
In some edge cases, expected and result can't be directly used in string interpolation, so pass them through `lib.generators.toPretty` to be safe.
This commit is contained in:
parent
7a11b66f11
commit
693e749edb
1 changed files with 2 additions and 2 deletions
|
@ -343,8 +343,8 @@ else
|
|||
results = pkgs.lib.concatStringsSep "\n" (
|
||||
builtins.map (result: ''
|
||||
${result.name}:
|
||||
expected: ${result.expected}
|
||||
result: ${result.result}
|
||||
expected: ${lib.generators.toPretty { } result.expected}
|
||||
result: ${lib.generators.toPretty { } result.result}
|
||||
'') results
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue