diff --git a/src/test/java/org/wiztools/xsdgen/TypeInferenceUtilTest.java b/src/test/java/org/wiztools/xsdgen/TypeInferenceUtilTest.java index d2b223b..732ab65 100644 --- a/src/test/java/org/wiztools/xsdgen/TypeInferenceUtilTest.java +++ b/src/test/java/org/wiztools/xsdgen/TypeInferenceUtilTest.java @@ -71,4 +71,16 @@ public void testGetTypeOfContentDateTimeInvalid() { String result = TypeInferenceUtil.getTypeOfContent(content); assertEquals(expResult, result); } + + /** + * Reported in issue #14 ( https://github.com/wiztools/xsd-gen/issues/14 ) + */ + @Test + public void testFourDgtAsTime() { + System.out.println("testFourDgtAsTime"); + String content = "2012"; + String expResult = TypeInferenceUtil.XSD_INT; + String result = TypeInferenceUtil.getTypeOfContent(content); + assertEquals(expResult, result); + } }