1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-18 08:53:47 +02:00

Added test for qmckl_est_error. #15

This commit is contained in:
vijay gopal chilkuri 2021-05-25 13:34:33 +05:30
parent 97e74c6c3f
commit 7c7a166bb8

View File

@ -36,6 +36,9 @@
#include "config.h"
#endif
int main() {
qmckl_context context;
context = qmckl_context_create();
#+end_src
#+end_src
@ -409,6 +412,10 @@ if (x < 0) {
#+begin_src c :comments link :tangle (eval c_test)
const char* function_name[QMCKL_MAX_FUN_LEN]={'q','m','c','k','l','_','t','r','a','n','s','p','o','s','e','\0'};
const char* message[QMCKL_MAX_FUN_LEN]={'S','u','c','c','e','s','s','\0'};
qmckl_exit_code exit_code;
exit_code = 0;
assert (qmckl_set_error(context, exit_code, function_name, message) == QMCKL_SUCCESS);
return 0;
}
#+end_src