From 957119be5b464e61827f34618a1917829bf8864a Mon Sep 17 00:00:00 2001 From: Marlena Weidenauer <134061260+marlenaweidenauer@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:40:20 +0200 Subject: [PATCH] Update TestMatlab.m added test jacobian function --- testing/clients/TestMatlab.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/testing/clients/TestMatlab.m b/testing/clients/TestMatlab.m index 4dc6fbf..44db1fc 100644 --- a/testing/clients/TestMatlab.m +++ b/testing/clients/TestMatlab.m @@ -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