From b9f80a2b37edf9682f189b406542b3f7a93b24a3 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 2 Apr 2025 20:54:37 +0300 Subject: Moved directory and some experimental changes --- c_implementation/tests/test_akfs_mkdir.c | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 c_implementation/tests/test_akfs_mkdir.c (limited to 'c_implementation/tests/test_akfs_mkdir.c') diff --git a/c_implementation/tests/test_akfs_mkdir.c b/c_implementation/tests/test_akfs_mkdir.c new file mode 100644 index 0000000..9ac98d1 --- /dev/null +++ b/c_implementation/tests/test_akfs_mkdir.c @@ -0,0 +1,38 @@ +#include +#include + +void test_non_hash_string(){ + char *path = "tes"; + int ec = ak_fs_create_dir_for_hash(path); + printf("mkdir return code: %d\n", ec); + path = "tes/t"; + ec = ak_fs_create_dir_for_hash(path); + printf("mkdir return code: %d\n", ec); +} + +void test_hash_string(){ + char *path = "ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff"; + int ec = ak_fs_create_dir_for_hash(path); + printf("mkdir return code: %d\n", ec); +} + +void test_hash_string2(){ + char *path = "ee2ab0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff"; + int ec = ak_fs_create_dir_for_hash(path); + printf("mkdir return code: %d\n", ec); +} + +void test_hash_string3(){ + char *path = "ee2ab0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a800"; + int ec = ak_fs_create_dir_for_hash(path); + printf("mkdir return code: %d\n", ec); +} + +int main() +{ + test_non_hash_string(); + test_hash_string(); + test_hash_string2(); + test_hash_string3(); + return 0; +} -- cgit v1.2.3