degawa / dictos

Symbolic discretization tools for finite difference method on regular and staggered grid
MIT License
1 stars 0 forks source link

fix condition in `taylor_series` #54

Closed degawa closed 2 years ago

degawa commented 2 years ago
degawa commented 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)