small changes

This commit is contained in:
timerix 2022-08-12 22:26:58 +06:00
parent 305f372a6c
commit ae1320e31f
4 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ void print_dtsod(Hashtable* dtsod){
} }
void test_dtsod(){ void test_dtsod(){
//optime(__func__,1,({ optime(__func__,1,({
printf("\e[96m-------------[test_dtsod]-------------\n"); printf("\e[96m-------------[test_dtsod]-------------\n");
Hashtable* dtsod; Hashtable* dtsod;
char* s; char* s;
@ -61,5 +61,5 @@ void test_dtsod(){
})); }));
free(s); free(s);
//})); }));
} }

View File

@ -63,7 +63,7 @@ Unitype gett(Hashtable* ht){
void test_hashtable(){ void test_hashtable(){
optime("test_hashtable",1,({ optime("test_hashtable",1,({
printf("\e[96m-----------[test_hashtable]------------\n"); printf("\e[96m-----------[test_hashtable]-----------\n");
Hashtable* ht=Hashtable_create(); Hashtable* ht=Hashtable_create();
printf("\e[92mhashtable created\n"); printf("\e[92mhashtable created\n");
print_hashtable(ht); print_hashtable(ht);

View File

@ -23,7 +23,7 @@ void printstnode(STNode* node){
void test_searchtree(){ void test_searchtree(){
optime("test_searchtree",1,({ optime("test_searchtree",1,({
printf("\e[96m-----------[test_searchtree]-----------\n"); printf("\e[96m-----------[test_searchtree]----------\n");
STNode* node=STNode_create(); STNode* node=STNode_create();
printf("\e[92mnode created\n"); printf("\e[92mnode created\n");
printf("push:\e[94m\n "); printf("push:\e[94m\n ");

View File

@ -3,7 +3,7 @@
void test_string(){ void test_string(){
optime(__func__,1,({ optime(__func__,1,({
printf("\e[96m-------------[test_string]-------------\n"); printf("\e[96m-------------[test_string]------------\n");
char c[]="0123456789abcdef"; char c[]="0123456789abcdef";
string s={.ptr=c, .length=cptr_length(c)}; string s={.ptr=c, .length=cptr_length(c)};
if(s.length!=sizeof(c)-1) throw("string created with incorrect length"); if(s.length!=sizeof(c)-1) throw("string created with incorrect length");