forked from xuos/xiuos
				
			Fix test
This commit is contained in:
		
							parent
							
								
									c56298fa99
								
							
						
					
					
						commit
						8effd59528
					
				
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 91 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 96 KiB | 
|  | @ -57,7 +57,7 @@ int InsertNode(radix_node *root, unsigned int key, void *value) | |||
|         return -3; // Repeat insertion
 | ||||
|     if (cur->value != NULL) | ||||
|         return -4; // Already occupied
 | ||||
|     cur->value == value; | ||||
|     cur->value = value; | ||||
|     return 0; | ||||
| } | ||||
| 
 | ||||
|  | @ -159,9 +159,9 @@ void TestRadix() | |||
| 
 | ||||
|     for (int i = 0; i < num; ++i) | ||||
|     { | ||||
|         int *v = (int *)FindNode(root, keys[i]); | ||||
|         char *v = (char *)FindNode(root, keys[i]); | ||||
|         if (v) | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, *v); | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, v); | ||||
|         else | ||||
|             printf("keys[%d] %x not found\n", i, keys[i]); | ||||
|     } | ||||
|  | @ -172,9 +172,9 @@ void TestRadix() | |||
| 
 | ||||
|     for (int i = 0; i < num; ++i) | ||||
|     { | ||||
|         int *v = (int *)FindNode(root, keys[i]); | ||||
|         char *v = (char *)FindNode(root, keys[i]); | ||||
|         if (v) | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, *v); | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, v); | ||||
|         else | ||||
|             printf("keys[%d] %x not found\n", i, keys[i]); | ||||
|     } | ||||
|  | @ -185,9 +185,9 @@ void TestRadix() | |||
| 
 | ||||
|     for (int i = 0; i < num; ++i) | ||||
|     { | ||||
|         int *v = (int *)FindNode(root, keys[i]); | ||||
|         char *v = (char *)FindNode(root, keys[i]); | ||||
|         if (v) | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, *v); | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, v); | ||||
|         else | ||||
|             printf("keys[%d] %x not found\n", i, keys[i]); | ||||
|     } | ||||
|  | @ -198,9 +198,9 @@ void TestRadix() | |||
| 
 | ||||
|     for (int i = 0; i < num; ++i) | ||||
|     { | ||||
|         int *v = (int *)FindNode(root, keys[i]); | ||||
|         char *v = (char *)FindNode(root, keys[i]); | ||||
|         if (v) | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, *v); | ||||
|             printf("keys[%d] %x, values[%d] = %s\n", i, keys[i], i, v); | ||||
|         else | ||||
|             printf("keys[%d] %x not found\n", i, keys[i]); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue