From 768e3e38ea11becee0d6b2496b66d03953ee53a8 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 23 Dec 2024 22:26:21 +0600 Subject: also print overall count of items when testing pegs --- lib/utils.fnl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/utils.fnl') diff --git a/lib/utils.fnl b/lib/utils.fnl index 046f646..f0be29b 100644 --- a/lib/utils.fnl +++ b/lib/utils.fnl @@ -13,7 +13,10 @@ (local parser (require :parser.parser)) (with-open [f (io.open file "r")] (local contents (f:read :*all)) - (print (fennel.view (parser.match-many contents peg)))) + (local items (parser.match-many contents peg)) + (when items + (print (.. "count: " (# items)))) + (print (fennel.view items))) (os.exit 1)) {: must : measure : test-peg} -- cgit v1.2.3