From: Peter Verthez Date: Fri, 16 Aug 2002 16:29:55 +0000 (+0000) Subject: New tests. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=3196d66f8b1bc966b198ff46521838b58bfa700e;p=gedcom-parse.git New tests. --- diff --git a/t/dates.test b/t/dates.test new file mode 100755 index 0000000..97423ed --- /dev/null +++ b/t/dates.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/test_script -2 dates.ged 0 diff --git a/t/encoding_error.test b/t/encoding_error.test new file mode 100755 index 0000000..d58963b --- /dev/null +++ b/t/encoding_error.test @@ -0,0 +1,3 @@ +#!/bin/sh + +$srcdir/test_script -2 -fn encoding_error.ged 1 diff --git a/t/input/dates.ged b/t/input/dates.ged new file mode 100644 index 0000000..f9d19ce --- /dev/null +++ b/t/input/dates.ged @@ -0,0 +1,50 @@ +0 HEAD +1 CHAR ASCII +1 SOUR APPROVED_SOURCE_NAME +1 SUBM @SUBMITTER@ +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +0 @SUBMITTER@ SUBM +1 NAME Peter /Verthez/ +0 @PERS00@ INDI +1 NAME /Normal date/ +1 BIRT +2 DATE 23 JUL 1992 +0 @PERS01@ INDI +1 NAME /No day number/ +1 BIRT +2 DATE JUL 1992 +0 @PERS02@ INDI +1 NAME /Only year/ +1 BIRT +2 DATE 1992 +0 @PERS03@ INDI +1 NAME /Mixed case/ +1 BIRT +2 DATE 23 Jul 1992 +0 @PERS04@ INDI +1 NAME /Strange case/ +1 BIRT +2 DATE 23 JuL 1992 +0 @PERS05@ INDI +1 NAME /Zero prefix/ +1 BIRT +2 DATE 04 JUL 1992 +0 @PERS06@ INDI +1 NAME /Unexpected calendar type/ +1 BIRT +2 DATE @#DFRENCH@ 03 BRUM 4 +0 @PERS07@ INDI +1 NAME /French revolution/ +1 BIRT +2 DATE @#DFRENCH R@ 03 BRUM 4 +0 @PERS08@ INDI +1 NAME /Hebrew calendar/ +1 BIRT +2 DATE @#DHEBREW@ 1 SHV 4 +0 @PERS09@ INDI +1 NAME /Julian calendar/ +1 BIRT +2 DATE @#DJULIAN@ 12 APR 1302 +0 TRLR diff --git a/t/input/encoding_error.ged b/t/input/encoding_error.ged new file mode 100644 index 0000000..9bf13e1 --- /dev/null +++ b/t/input/encoding_error.ged @@ -0,0 +1,20 @@ +0 HEAD +1 CHAR ASCII +1 SOUR APPROVED_SOURCE_NAME +1 SUBM @SUBMITTER@ +1 GEDC +2 VERS 5.5 +2 FORM LINEAGE-LINKED +0 @SUBMITTER@ SUBM +1 NAME Peter /Verthez/ +0 @PERS00@ INDI +1 NAME /Normal date; test character: é, should be ok when -fn/ +1 BIRT +2 DATE 23 JUL 1992 +0 @PERS01@ INDI +1 NAME /No day number/ +1 BIRT +2 DATE JUL 1992 +0 @F01@ FAM +1 HUSB @PERS01@ +0 TRLR