Closed JPT77 closed 6 years ago
well, must by 60y but this does not work either.
patch for testcase
index e0afb62..86f5933 100644
--- a/src/test/java/org/gedcom4j/validate/IndividualEventValidatorTest.java
+++ b/src/test/java/org/gedcom4j/validate/IndividualEventValidatorTest.java
@@ -88,5 +88,13 @@
e.getAddress().setCity("FryingPanVille");
validator.validate();
assertNoIssues();
+
+ e = new IndividualEvent();
+ e.setType(IndividualEventType.DEATH);
+ i.getEvents().add(e);
+ e.setDate("05 may 1967");
+ e.setAge("STILLBORN"); // works
+ validator.validate();
+ assertNoIssues();
+ e.setAge("55y"); // fails
+ validator.validate();
+ assertNoIssues();
}
}
solved, see first comment
Hi I believe this is a bug since Gedcom 5.5 says
ps. Age 60 at birth is wrong though :)
solved, patch