From 059002cd2c6bd993d4416d0a5c7de83e77efacfd Mon Sep 17 00:00:00 2001 From: Damien Tardy-Panis Date: Tue, 19 May 2020 18:19:48 +0200 Subject: [PATCH] Add basic working tests for line breaks parsing --- test/line-breaks | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 test/line-breaks diff --git a/test/line-breaks b/test/line-breaks new file mode 100755 index 0000000..c6c2fc4 --- /dev/null +++ b/test/line-breaks @@ -0,0 +1,29 @@ +#!/bin/sh +. test/lib.sh + +begin "Handles line break" +scdoc </dev/null +test(8) + +hello++ +world +EOF +end 0 + +begin "Disallows empty line after line break" +scdoc </dev/null +test(8) + +hello++ + +world +EOF +end 1 + +begin "Leave single +" +scdoc </dev/null +test(8) + +hello+world +EOF +end 0