How do I make sure my library function is correct?
Well I create the entire valid-input set and the entire invalid-input set and run those against other libraries that do the same.
Then I file bug reports on the libraries that don't behave like mine... right?
Wait, there are other libraries that do the same as mine? Why am I writing one? Don't worry, such minor detail hasn't stopped people in the past.