Skip to content

Commit

Permalink
Update parameter test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingjian Wen committed Aug 19, 2019
1 parent 6dd4eb5 commit fc5b067
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/models/test_parameter.py
Expand Up @@ -79,12 +79,14 @@ def test_fitting_parameter():
assert fp.get_number_of_opt_params() == 3

for i in range(3):
v, p, c = fp.get_opt_param_value_and_indices(i)
n, v, p, c = fp.get_opt_param_name_value_and_indices(i)
assert v == x0[i]
if i == 0:
assert n == 'p1'
assert p == 0
assert c == 0
else:
assert n == 'p2'
assert p == 1
assert c == (i - 1) % 2

Expand Down

0 comments on commit fc5b067

Please sign in to comment.