The Perfect Solution

JPDev@programming.dev to Programmer Humor@programming.dev – 676 points –
81

You are viewing a single comment

Key seems valid. I'll check all the integers for you to see how accurate it is.

While you're at it, also test

  • one
  • three fifty
  • 69 nice
  • 6.9
  • 4,20
  • null (it's German for zero)
  • pie (and pi)
  • cake
  • fruits
  • One million three hundred (wonder if it gets confused by "one" and "three")

To be honest, I wouldn't be surprised if it failed once every few 100s of thousands. Make sure to test all real integers