IntegerPattern should accept negative number

Important in the factorial exercise so the correct error message is
printed.