Closed degawa closed 2 years ago
error is not raised when execute a test code below:
up_to = -1
with self.subTest("taylor_series with invalid up_to %d" % up_to):
with self.assertRaises(NumberOfExpansionTermsIsNotNaturalNumberError):
taylor_series("h", up_to)
NumberOfExpansionTermsIsNotNaturalNumberError
is not raised.