Skip to content

Commit

Permalink
Update TestMatlab.m
Browse files Browse the repository at this point in the history
added test jacobian function
  • Loading branch information
marlenaweidenauer committed Sep 10, 2023
1 parent 95ab47d commit 957119b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testing/clients/TestMatlab.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ function testConnection(testCase)

end

function testApplyJacobian(testCase)
uri = 'http://localhost:4243';

model = HTTPModel(uri,'posterior');

httpValue = model.apply_jacobian([1.0,4.0], [1,3], 0, 0)
exactValue = -3.370206919896928;
testCase.verifyEqual(httpValue, exactValue, 'RelTol', 1e-14)

end

function testBasicExample(testCase)
matlabClient;;
end
Expand Down

0 comments on commit 957119b

Please sign in to comment.