Skip to content

Commit 96f4631

Browse files
committed
added test for iterated first order, called by old method signature
1 parent 8409c97 commit 96f4631

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pynumdiff/tests/test_diff_methods.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def iterated_first_order(*args, **kwargs): return first_order(*args, **kwargs)
3030

3131
# Call both ways, with kwargs (new) and with params list with default options dict (legacy), to ensure both work
3232
diff_methods_and_params = [
33-
(first_order, {}),
34-
(iterated_first_order, {'num_iterations':5}),
35-
(second_order, {}), # empty dictionary for the case of no parameters
33+
(first_order, {}), # empty dictionary for the case of no parameters. no params -> no diff in new vs old
34+
(iterated_first_order, {'num_iterations':5}), (iterated_first_order, [5], {'iterate':True}),
35+
(second_order, {}),
3636
#(lineardiff, {'order':3, 'gamma':5, 'window_size':10, 'solver':'CVXOPT'}),
3737
(polydiff, {'polynomial_order':2, 'window_size':3}), (polydiff, [2, 3]),
3838
(savgoldiff, {'polynomial_order':2, 'window_size':4, 'smoothing_win':4}), (savgoldiff, [2, 4, 4]),

0 commit comments

Comments
 (0)