Test for writing dates.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 15 Dec 2002 14:10:12 +0000 (14:10 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 15 Dec 2002 14:10:12 +0000 (14:10 +0000)
t/output/write_gom_dates.ged [new file with mode: 0644]
t/output/write_gom_dates.ref [new file with mode: 0644]
t/write_gom_dates.test [new file with mode: 0755]

diff --git a/t/output/write_gom_dates.ged b/t/output/write_gom_dates.ged
new file mode 100644 (file)
index 0000000..481af66
--- /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/output/write_gom_dates.ref b/t/output/write_gom_dates.ref
new file mode 100644 (file)
index 0000000..b719c3d
--- /dev/null
@@ -0,0 +1,13 @@
+ERROR: Error on line 37: Unknown calendar type
+ERROR: Error on line 37: parse error
+WARNING: Warning: Cross-reference @PERS07@ defined on line 38 is never used
+WARNING: Warning: Cross-reference @PERS02@ defined on line 18 is never used
+WARNING: Warning: Cross-reference @PERS00@ defined on line 10 is never used
+WARNING: Warning: Cross-reference @PERS01@ defined on line 14 is never used
+WARNING: Warning: Cross-reference @PERS04@ defined on line 26 is never used
+WARNING: Warning: Cross-reference @PERS09@ defined on line 46 is never used
+WARNING: Warning: Cross-reference @PERS08@ defined on line 42 is never used
+WARNING: Warning: Cross-reference @PERS06@ defined on line 34 is never used
+WARNING: Warning: Cross-reference @PERS05@ defined on line 30 is never used
+WARNING: Warning: Cross-reference @PERS03@ defined on line 22 is never used
+Test succeeded
diff --git a/t/write_gom_dates.test b/t/write_gom_dates.test
new file mode 100755 (executable)
index 0000000..a9d3047
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+$srcdir/src/test_writegom $0 0 LF ASCII 0 dates.ged