Skip to content

Commit

Permalink
#14 4-digit numbers treated as date-time type
Browse files Browse the repository at this point in the history
  • Loading branch information
subwiz committed Nov 23, 2018
1 parent a09fa55 commit 9d1ba8a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/org/wiztools/xsdgen/TypeInferenceUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 9d1ba8a

Please sign in to comment.