small changes
This commit is contained in:
parent
305f372a6c
commit
ae1320e31f
@ -33,7 +33,7 @@ void print_dtsod(Hashtable* dtsod){
|
||||
}
|
||||
|
||||
void test_dtsod(){
|
||||
//optime(__func__,1,({
|
||||
optime(__func__,1,({
|
||||
printf("\e[96m-------------[test_dtsod]-------------\n");
|
||||
Hashtable* dtsod;
|
||||
char* s;
|
||||
@ -61,5 +61,5 @@ void test_dtsod(){
|
||||
}));
|
||||
|
||||
free(s);
|
||||
//}));
|
||||
}));
|
||||
}
|
||||
@ -63,7 +63,7 @@ Unitype gett(Hashtable* ht){
|
||||
|
||||
void test_hashtable(){
|
||||
optime("test_hashtable",1,({
|
||||
printf("\e[96m-----------[test_hashtable]------------\n");
|
||||
printf("\e[96m-----------[test_hashtable]-----------\n");
|
||||
Hashtable* ht=Hashtable_create();
|
||||
printf("\e[92mhashtable created\n");
|
||||
print_hashtable(ht);
|
||||
|
||||
@ -23,7 +23,7 @@ void printstnode(STNode* node){
|
||||
|
||||
void test_searchtree(){
|
||||
optime("test_searchtree",1,({
|
||||
printf("\e[96m-----------[test_searchtree]-----------\n");
|
||||
printf("\e[96m-----------[test_searchtree]----------\n");
|
||||
STNode* node=STNode_create();
|
||||
printf("\e[92mnode created\n");
|
||||
printf("push:\e[94m\n ");
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
void test_string(){
|
||||
optime(__func__,1,({
|
||||
printf("\e[96m-------------[test_string]-------------\n");
|
||||
printf("\e[96m-------------[test_string]------------\n");
|
||||
char c[]="0123456789abcdef";
|
||||
string s={.ptr=c, .length=cptr_length(c)};
|
||||
if(s.length!=sizeof(c)-1) throw("string created with incorrect length");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user