Skip to content

Commit

Permalink
adjusted test
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick-schoels committed Aug 19, 2020
1 parent ae7a2c9 commit 63533c7
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions tests/unit/cardcom_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,29 @@
#endif
#include <stdio.h>
#include "testlib.h"

#include <string>
#include <string.h>
#include <typeinfo>
#include <iostream>


/*#include "common.h"*/
TEST_FUNC(scardcom_common){
if (typeid(wstring_From_string(std::string ("teststring"))).name() =! "wstring"){
return TEST_RV_SKIP;
/*if (typename(wstring_From_string("teststring")) =! TYPE_WSTRING){
printf("not ok\n");
return TEST_RV_FAIL;
}
std::wstring testw = wstring_From_string(std::string ("teststring"));
if (typeid(string_From_wstring(testw)).name =! "string"){
std::wstring testw = wstring_From_string("teststring");
if (typename(string_From_wstring(testw)) =! TYPE_STRING){
printf("not ok\n");
return TEST_RV_FAIL;
}
FILE *tfile = NULL
tfile.fopen("testfile.txt","a")
tfile.fopen("testfile.txt","w+")
if (_wfopen_s(tfile, wstring_From_string(std::string ("testfile.txt")), ...) > 0 ){
printf("not ok\n");
return TEST_RV_FAIL;
}
fclose(tfile);
remove("testfile.txt");
return TEST_RV_SKIP;
return TEST_RV_SKIP;*/
}

0 comments on commit 63533c7

Please sign in to comment.