From f416799623451b46b56eac9c7a52594ff855f5a4 Mon Sep 17 00:00:00 2001 From: vijay gopal chilkuri Date: Wed, 26 May 2021 09:36:38 +0530 Subject: [PATCH] Completed tests for qmckl_error and added expression for rescaled distances. #15 --- org/qmckl_distance.org | 2 +- org/qmckl_error.org | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org/qmckl_distance.org b/org/qmckl_distance.org index 8c5c191..c9ef84c 100644 --- a/org/qmckl_distance.org +++ b/org/qmckl_distance.org @@ -789,7 +789,7 @@ assert(test_qmckl_dist(context) == QMCKL_SUCCESS); pairs of points in two sets, one point within each set: \[ - C_{ij} = TODO + R_{ij} = \left( 1 - \exp{-\kappa C_{ij}}\right)/\kappa \] If the input array is normal (~'N'~), the xyz coordinates are in diff --git a/org/qmckl_error.org b/org/qmckl_error.org index 0a24de6..bed5c7d 100644 --- a/org/qmckl_error.org +++ b/org/qmckl_error.org @@ -427,8 +427,8 @@ if (x < 0) { assert (qmckl_get_error(context, &exit_code, function_name, message) == QMCKL_SUCCESS); assert (exit_code == 1); - //assert (function_name == "qmckl_transpose"); - //assert (message == "Success"); + assert (strcmp(function_name,"qmckl_transpose") == 0); + assert (strcmp(message,"Success") == 0); return 0; }