vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ea706f07b2aa36418c4f763abc21f4785f5cc1e3
parent 34449956f983ea7e4b4d12b410cf9997039c8270
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 20 Oct 2020 11:56:25 +0200

test/core: avoid puts("") to print a new line

Diffstat:
Mcore/tap.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/tap.h b/core/tap.h @@ -16,7 +16,7 @@ static int exit_status() { bool _e = (e); \ printf("%sok %d - ", _e ? "" : "not ", ++test_count); \ printf(__VA_ARGS__); \ - puts(""); \ + printf("\n"); \ if (!_e) { \ failures++; \ printf(" Failed test (%s:%s() at line %d)\n", __FILE__, __func__, __LINE__); \ @@ -32,7 +32,7 @@ static int exit_status() { while (_n--) { \ printf("ok %d # skip ", ++test_count); \ printf(__VA_ARGS__); \ - puts(""); \ + printf("\n"); \ } \ } while (0)