-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.c
More file actions
executable file
·35 lines (29 loc) · 729 Bytes
/
main.c
File metadata and controls
executable file
·35 lines (29 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <stdio.h>
#include "file_cache.h"
extern file_cache* head;
int main() {
// /* unit test 1
const char *arr[2] = {"a1","b1"};
file_cache_pin_files(head,arr,2);
// */
/* unit test 2
const char *arr[3] = {"a1","b1","a1"};
file_cache_pin_files(head,arr,3);
*/
/* unit test 3
file_cache_mutable_file_data(head,"a1");
*/
/* unit test 4
const char *arr[1] = {"a1"};
file_cache_mutable_file_data(head,"a1");
file_cache_mutable_file_data(head,"a1");
*/
/* unit test 5
const char *arr[2] = {"a1","b1"};
file_cache_pin_files(head,arr,2);
file_cache_mutable_file_data(head,"a1");
const char *ar[1]={"a1"};
file_cache_unpin_files(head,ar,1);
*/
return 0;
}