fix print order

This commit is contained in:
tristan 2024-01-03 09:39:25 +00:00
parent 6f4955581b
commit f125ec4c31

View file

@ -26,7 +26,9 @@ msg: {
then builtins.removeAttrs v ["__toString" "__functor"] then builtins.removeAttrs v ["__toString" "__functor"]
else v; else v;
success = ( success =
builtins.trace "tix: ${msg}"
(
if throws if throws
then (builtins.tryEval actual).success == false then (builtins.tryEval actual).success == false
else (a == e) else (a == e)
@ -37,8 +39,8 @@ in
} }
// ( // (
if success if success
then builtins.trace "tix: ${emotes.pass} ${msg}" {} then builtins.trace "tix: ${emotes.pass}" {}
else else
builtins.trace "tix: ${emotes.fail} ${msg}" builtins.trace "tix: ${emotes.fail}"
{inherit actual expected;} {inherit actual expected;}
) )