From 7052f54ee34c6edf8cc0694bcd379930504a2785 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Wed, 30 Oct 2002 18:15:51 +0000 Subject: [PATCH] New test (due to bug 613480). --- t/input/line_nr.ged | 10 ++++++++++ t/line_nr.test | 3 +++ t/output/line_nr.ref | 19 +++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 t/input/line_nr.ged create mode 100755 t/line_nr.test create mode 100644 t/output/line_nr.ref 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 -- 2.30.2