fix print order
This commit is contained in:
parent
6f4955581b
commit
f125ec4c31
1 changed files with 5 additions and 3 deletions
|
@ -26,7 +26,9 @@ msg: {
|
|||
then builtins.removeAttrs v ["__toString" "__functor"]
|
||||
else v;
|
||||
|
||||
success = (
|
||||
success =
|
||||
builtins.trace "tix: │ ├── ${msg}"
|
||||
(
|
||||
if throws
|
||||
then (builtins.tryEval actual).success == false
|
||||
else (a == e)
|
||||
|
@ -37,8 +39,8 @@ in
|
|||
}
|
||||
// (
|
||||
if success
|
||||
then builtins.trace "tix: │ ├── ${emotes.pass} ${msg}" {}
|
||||
then builtins.trace "tix: │ │ ${emotes.pass}" {}
|
||||
else
|
||||
builtins.trace "tix: │ ├── ${emotes.fail} ${msg}"
|
||||
builtins.trace "tix: │ │ ${emotes.fail}"
|
||||
{inherit actual expected;}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue