New tests.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 16 Aug 2002 16:29:55 +0000 (16:29 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Fri, 16 Aug 2002 16:29:55 +0000 (16:29 +0000)
t/dates.test [new file with mode: 0755]
t/encoding_error.test [new file with mode: 0755]
t/input/dates.ged [new file with mode: 0644]
t/input/encoding_error.ged [new file with mode: 0644]

diff --git a/t/dates.test b/t/dates.test
new file mode 100755 (executable)
index 0000000..97423ed
--- /dev/null
@@ -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 (executable)
index 0000000..d58963b
--- /dev/null
@@ -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 (file)
index 0000000..f9d19ce
--- /dev/null
@@ -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 (file)
index 0000000..9bf13e1
--- /dev/null
@@ -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