Basically, I have a project which I need create a output format of DD/MM/YYYY - Which I used in a toString, it works fine.
I then used a switch case for all the days in a month, and of course I took into consideration the leap year.
When I try and run the test folder for the class, i get this error:
(The toString passes as successful)
However, the Day/Month/Year test don't
java.lang.AssertionError: expected:<1> but was:<32>
and under this line reads:
And help will be very much appreciated.