Kiddie oracle example

De Software testing
Ir para: navegação, pesquisa
  • Consider the factorial of a number.
  • For small input numbers, like 2, 3, it is easy to verify that:
    • 2! = 2
    • 3! = 6
  • But what about bigger numbers?
    • 11! = 39916800 ?
    • 21! = 51090842171709440000 ?
  • Actually, 21! = 51090942171709440000 (instead of 51090842171709440000)