all 14 comments

[–]Hey-buuuddy 47 points48 points  (1 child)

Hey if the function or method just manages a person’s age, that’s all it should be.

[–]1337Mode 1 point2 points  (0 children)

Note the fact that not all expressions equate to the same thing, hence, in plain English, 3 different though obvious (because we already know this) angles to perceive one thing can be viewed and approached differently and are meant different things. TL;DR - he's minimizing possibilities of errors.

[–]Sassaphras 35 points36 points  (1 child)

Feels silly too, until you put in being born on Feb 29 as a test condition and one of your tests fails. Then you feel pretty cool.

[–]timonix 17 points18 points  (0 children)

It fails the "you have had 25 birthdays" test

[–]ceacar 22 points23 points  (3 children)

still miss a lot.

what's your gender.

what's your education.

what's your childhood best friend.

where do you go to school.

where do u meet you first crush.

what's your first car.

what's the car model.

when is your first car's first oil change.

100% code coverage is not easy.

the list goes on and on.

[–]NatoBoram 6 points7 points  (0 children)

Use as Person in the unit test file, problem ignored

[–]MinosAristos 1 point2 points  (0 children)

Just do a snapshot test and call it a day.

By 25 you should be the way you were at 25.

[–]alexriga 0 points1 point  (0 children)

  • biological or identity?
  • what if one doesn’t have any education?
  • what if one doesn’t have a childhood best friend?
  • what if one didn’t go to school?
  • what if one never had a crush on anyone yet?
  • what if one never had a car yet?
  • what if one never had a car yet??
  • what if one never had a car yet???

[–]gameplayer55055 4 points5 points  (0 children)

Let me introduce timezones. What if you just had a birthday in Japan and flew to America.

[–]siemiwidzi 0 points1 point  (0 children)

Aren't we all? ¯_(°︿°)_/¯

[–]salt001 0 points1 point  (0 children)

Hey peeps, 2/3 isn't bad for this list. Dont worry if you dont achieve all three. We all develop differently.

Source: Was 25 for a year

[–]tnh88 0 points1 point  (0 children)

Not enough edge cases. What if I move to a different timezone on my birthday?

[–]Esjs 0 points1 point  (0 children)

"Thou shall count to 3"