From 6660c1da38dd010c5ef23c01ecb95d99610b64bd Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 12 Nov 2021 20:04:34 -0600 Subject: [PATCH] Don't truncate test output on failures. --- CHANGELOG.md | 1 + test/helper.janet | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a848951..5c29bf74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ All notable changes to this project will be documented in this file. ## ??? - Unreleased +- Ctrl-C will now raise SIGINT. - Allow quoted literals in the `match` macro to behave as expected in patterns. - Fix windows net related bug for TCP servers. - Allow evaluating ev streams with dofile. diff --git a/test/helper.janet b/test/helper.janet index 0cbdeb6f..03167715 100644 --- a/test/helper.janet +++ b/test/helper.janet @@ -14,11 +14,9 @@ (++ num-tests-run) (when x (++ num-tests-passed)) (def str (string e)) - (def truncated - (if (> (length e) 40) (string (string/slice e 0 35) "...") (describe e))) (if x - (when is-verbose (eprintf "\e[32m✔\e[0m %s: %v" truncated x)) - (eprintf "\n\e[31m✘\e[0m %s: %v" truncated x)) + (when is-verbose (eprintf "\e[32m✔\e[0m %s: %v" (describe e) x)) + (eprintf "\n\e[31m✘\e[0m %s: %v" (describe e) x)) x) (defmacro assert-error