deserialize() fixed and tested on windows

This commit is contained in:
2022-03-08 01:18:53 +03:00
parent 46e7991867
commit 3cb878c75f
8 changed files with 40 additions and 56 deletions

View File

@@ -2,10 +2,10 @@
#include "tests.h"
void test_all(){
//test_searchtree();
//test_autoarr();
//test_hashtable();
//test_string();
test_searchtree();
test_autoarr();
test_hashtable();
test_string();
test_dtsod();
printf("\e[96m---------------------------------------\e[0m\n");
}

View File

@@ -4,16 +4,16 @@
const char text[]=
"message: {\n"
" bool: false;"
//" char: 'v';"
" char: 'v';"
" int: -2515;"
" uint: 0u;"
" double: 965.557f;"
" uint:#comment!\n 0u;"
" double: 965.557f;#another comment!\n"
" text: \"_$\\\"\\\\'''\n\ta ыыы000;2;=:%d;```\";\n"
"}; \n";
"}; ";
void test_dtsod(){
printf("\e[96m-------------[test_dtsod]-------------\n");
//optime(__func__,1,({
optime(__func__,1,({
Hashtable* dtsod;
optime("deserialize",1,(dtsod=DtsodV24_deserialize(text)));
Hashtable_foreach(dtsod, p,({
@@ -31,5 +31,5 @@ void test_dtsod(){
printf("\n");
}));
Hashtable_free(dtsod);
//}));
}));
}