Class TestParsingMatchFunction
- java.lang.Object
-
- com.github.lgooddatepicker.ysandbox.TestParsingMatchFunction
-
public class TestParsingMatchFunction extends java.lang.Object
testParsingMatchFunction, This class was written to thoroughly test the effectiveness of the DatePickerUtilities.doesParsedDateMatchText() function. This class is not involved with the normal operation of the date pickers.
-
-
Constructor Summary
Constructors Constructor Description TestParsingMatchFunction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
main, This only exists to run test functions.static void
testDoesParsedDateMatchTextFunction()
testDoesParsedDateMatchTextFunction, Test for the function doesParsedDateMatchText().
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
main, This only exists to run test functions.
-
testDoesParsedDateMatchTextFunction
public static void testDoesParsedDateMatchTextFunction()
testDoesParsedDateMatchTextFunction, Test for the function doesParsedDateMatchText(). This test every valid date between years -10000 and 10000, and also tests all the invalid dates up to the 31st of short months, in the same range. The tests are done with both alphabetic and numeric months, and done with BC dates (BC dates have years that are offset from ISO). As of this writing, the function correctly handles every tested date.
-
-