#include "tests.h" #include "../DtsodParser/DtsodV24.h" const char text[]= "message: {\n" " bool: false;" //" char: 'v';" " int: -2515;" " uint: 0u;" " double: 965.557f;" " text: \"_$\\\"\\\\'''\n\ta ыыы000;2;=:%d;```\";\n" "}; \n"; void test_dtsod(){ printf("\e[96m-------------[test_dtsod]-------------\n"); //optime(__func__,1,({ Hashtable* dtsod; optime("deserialize",1,(dtsod=DtsodV24_deserialize(text))); Hashtable_foreach(dtsod, p,({ printkvp(p); if(p.value.type==HashtablePtr){ printf(":\n{\n"); Hashtable* sub=p.value.VoidPtr; Hashtable_foreach(sub, _p,({ printf(" "); printkvp(_p); printf("\n"); })); printf("}"); } printf("\n"); })); Hashtable_free(dtsod); //})); }