From: Peter Verthez Date: Wed, 30 Oct 2002 18:15:51 +0000 (+0000) Subject: New test (due to bug 613480). X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=7052f54ee34c6edf8cc0694bcd379930504a2785;p=gedcom-parse.git New test (due to bug 613480). --- diff --git a/t/input/line_nr.ged b/t/input/line_nr.ged new file mode 100644 index 0000000..2c7cced --- /dev/null +++ b/t/input/line_nr.ged @@ -0,0 +1,10 @@ +0 HEAD +1 CHAR ASCII +1 SOUR APPROVED_SOURCE_NAME +1 SUBM +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +0 @SUBMITTER@ SUBM +1 NAME Peter /Verthez/ +0 TRLR diff --git a/t/line_nr.test b/t/line_nr.test new file mode 100755 index 0000000..3388563 --- /dev/null +++ b/t/line_nr.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/src/test_script -2 line_nr.ged line_nr 1 diff --git a/t/output/line_nr.ref b/t/output/line_nr.ref new file mode 100644 index 0000000..8026ca6 --- /dev/null +++ b/t/output/line_nr.ref @@ -0,0 +1,19 @@ + +=== Parsing file line_nr.ged +Header start +== 1 CHAR (292) ASCII (ctxt is 1, conversion failures: 0) +Source is APPROVED_SOURCE_NAME (ctxt is 1001, parent is 1) +Source context 1001 in parent 1 +ERROR: Error on line 4: Missing pointer + +=== Total conversion failures: 0 + +=== Parsing file line_nr.ged +Header start +== 1 CHAR (292) ASCII (ctxt is 1, conversion failures: 0) +Source is APPROVED_SOURCE_NAME (ctxt is 1001, parent is 1) +Source context 1001 in parent 1 +ERROR: Error on line 4: Missing pointer + +=== Total conversion failures: 0 +Parse failed