Skip to content

Instantly share code, notes, and snippets.

@ethanmick
Created January 10, 2012 16:28
Show Gist options
  • Save ethanmick/1589878 to your computer and use it in GitHub Desktop.
Save ethanmick/1589878 to your computer and use it in GitHub Desktop.
Testing 2
01/01/1899,01/01/1900 # First year too low #Ethan Mick - spent 359083590 seconds on this assignment
01/01/1900,01/01/1899 # Second year too low
01/01/10000,01/02/1901 # First year too high
01/01/1900,01/01/10000 # Second year too high
013/01/1900,01/01/1901 # invalid first month
01/01/1900,013/01/1901 # invalid second month
01/0144/1900,01/01/1901 # invalid first day
01/01/1900,01/0144/1901 # invalid second day
Comment as the first part of the line, 01/01/1900,01/02/1900
01-01-1900,01-02-1900 # different characters for separation
01\01\1900,01\02\1900 # Slashes are backwards
01_01_1900,01_02_1900 # Underscores
01.01.1900,01.02.1900 # Periods
01/01/1900.01/02/1900 # Period as separator
01/01/1900_01/02/1900 # Underscore as separator
01/01/1900\01/02/1900 # Backslash as separator
01/01/1901,01/01/1900 # First date is before the second date
01
01/
01/01
01/01/
01/01/1900
01/01/1900,
01/01/1900,01
01/01/1900,01/
01/01/1900,01/02
01/01/1900,01/02/
01/01/1900,01/02/1900
01/01/1900,01/02/1900#No space between comment and dates
01/01/1900,01/02/1900 # Normal valid date (one day)
01/01/1900,01/01/1900 # Same day
01/01/1900,01/03/1900 # 2 Days
01/01/1900,02/01/1900 # 1 month
01/01/1900,03/01/1900 # 2 months
01/01/1900,04/01/1900 # 3 months
01/01/1900,05/01/1900 # 4 months
01/01/1900,06/01/1900 # 5 months
01/01/1900,07/01/1900 # 6 months
01/01/1900,08/01/1900 # 7 months
01/01/1900,09/01/1900 # 8 months
01/01/1900,10/01/1900 # 9 months
01/01/1900,11/01/1900 # 10 months
01/01/1900,12/01/1900 # 11 months
01/01/1900,01/01/1901 # 12 months
01/01/1900,02/01/1901 # 1 year
01/01/1900,02/01/1902 # 2 year
01/01/1900,02/01/1905 # 5 year
01/01/1900,02/01/9999 # All the years
01/01/1900,02/02/1900 # 1 day and 1 month
01/01/1900,03/03/1900 # 2 days and 2 months
01/01/1900,02/02/1901 # 1 day and 1 month and 1 year
02/28/2004,02/29/2004 # Leap year day
02/29/2004,03/01/2004 # Leap year day 2
02/29/2004,02/29/2008 # Leap year year
02/28/2004,03/1/2004 # over leap day
-01/01/1900,01/02/1900 # Negative first day
01/-01/1900,01/02/1900 # Negative first month
01/01/-1900,01/02/1900 # Negative first year
01/01/1900,-01/02/1900 # Negative second day
01/01/1900,01/-02/1900 # Negative second Month
01/01/1900,01/02/-1900 # Negative second year
-01/-01/-1900,-01/-02/-1900 # All the negatives.
04/04/2007,04/05/2007 a comment at end of line
04/30/2007,04/30/2007
05/01/2007,04/30/2007
01/01/1900,13/01/1901 # invalid second month
001/01/1900,01/01/1901 # Too many digits in first day
01/001/1900,01/01/1901 # Too many digits in first month
01/01/01900,01/01/1901 # Too many digits in first year
01/01/1900,001/01/1901 # Too many digits in second day
01/01/1900,01/001/1901 # Too many digits in second month
01/01/1900,01/01/01901 # Too many digits in second year
1/01/1900,01/01/1901 # Too few digits in first day
01/1/1900,01/01/1901 # Too few digits in first month
01/01/1900,1/01/1901 # Too few digits in second day
01/01/1900,01/1/1901 # Too few digits in second month
00/00/0000,11/11/1100 # Zeros
01/32/2011,00/00/0000 # More zeros
03/03/3000,04/04/4000 # Date?
1900/01/01,01/01/1900 # YYYY/MM/DD in first date
01/01/01,1900/01/01 # YYYY/MM/DD in second date
01//01//1900,01/01/1900 # Double slashes
01/01/1900,,01/01/1900 # double commas
10/10/101x,10/10/1011 # Mike's Start
1x/10/1010,10/10/2011
x1/10/1010,10/10/2011
10/x1/1010,10/10/2011
10/x1/1010,10/10/2011
10/1x/1010,10/10/2011
10/10/1010,1x/10/2011
10/10/1010,10/1x,2011
10/10/1010,x0/20/2011
10/10/1010,10/x0/2011
10/10/1010,10/10/201x
12/31/1899,01/01/1900
12/31/9999,01/01/10000 # Mike's end
12/31/1999,01/02/2000 # <3
01/01/19x1,01/02x1902
03/29/1998,04/01/1998
06/31/2001,07/01/2001
05/31/2005,06/01/2005
07/31/2008,08/01/2008
08/31/2008,09/01/2008
09/31/2009,10/01/2009
10/31/2009,11/01/2009
01/31/2005,02/01/2005
03/31/2005,04/01/2005
04/31/2005,05/01/2005
11/31/2009,12/01/2009 # Mike's End 2
@Soulliard
Copy link

01/01/1900,13/01/1901 # invalid second month
001/01/1900,01/01/1901 # Too many digits in first day
01/001/1900,01/01/1901 # Too many digits in first month
01/01/01900,01/01/1901 # Too many digits in first year
01/01/1900,001/01/1901 # Too many digits in second day
01/01/1900,01/001/1901 # Too many digits in second month
01/01/1900,01/01/01901 # Too many digits in second year
1/01/1900,01/01/1901 # Too few digits in first day
01/1/1900,01/01/1901 # Too few digits in first month
01/01/1900,1/01/1901 # Too few digits in second day
01/01/1900,01/1/1901 # Too few digits in second month

@MichaelDrogalis
Copy link

00/00/0000,11/11/1100

@Soulliard
Copy link

02/29/2000,03/01/2000 # Leap year
02/28/1900,03/01/2000 # Not a leap year

@MichaelDrogalis
Copy link

01/32/2011,00/00/0000

@MichaelDrogalis
Copy link

03/03/3000,04/04/4000

@stormageddon
Copy link

1900/01/01,01/01/1900 # YYYY/MM/DD in first date
01/01/01,1900/01/01 # YYYY/MM/DD in second date
01//01//1900,01/01/1900 # Double slashes
01/01/1900,,01/01/1900 # double commas

@MichaelDrogalis
Copy link

10/10/101x,10/10/1011

@MichaelDrogalis
Copy link

1x/10/1010,10/10/2011

@MichaelDrogalis
Copy link

x1/10/1010,10/10/2011

@MichaelDrogalis
Copy link

10/x1/1010,10/10/2011

@MichaelDrogalis
Copy link

10/x1/1010,10/10/2011

10/10/1010,1x/10/2011
10/10/1010,10/1x,2011

@MichaelDrogalis
Copy link

10/1x/1010,10/10/2011

@MichaelDrogalis
Copy link

10/10/1010,x0/20/2011
10/10/1010,10/x0/2011
10/10/1010,10/10/201x

@MichaelDrogalis
Copy link

12/31/1899,01/01/1900

@MichaelDrogalis
Copy link

12/31/9999,01/01/10000 # 65%! Solid F!

@ethanmick
Copy link
Author

Updated to here. Also, Mike, I hate you.

@MichaelDrogalis
Copy link

12/31/1999,01/02/2000 # <3

@MichaelDrogalis
Copy link

01/01/19x1,01/02x1902

@MichaelDrogalis
Copy link

03/29/1998,04/01/1998

@MichaelDrogalis
Copy link

06/31/2001,07/01/2001

@MichaelDrogalis
Copy link

05/31/2005,06/01/2005

@MichaelDrogalis
Copy link

07/31/2008,08/01/2008
08/31/2008,09/01/2008
09/31/2009,10/01/2009
10/31/2009,11/01/2009
01/31/2005,02/01/2005
03/31/2005,04/01/2005
04/31/2005,05/01/2005

83%

@MichaelDrogalis
Copy link

11/31/2009,12/01/2009

85%

@MichaelDrogalis
Copy link

You may hate me, but we're almost done!

@ethanmick
Copy link
Author

Updated to here, again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment