mirror of
https://github.com/fumiama/fumidb.git
synced 2026-06-09 12:40:39 +08:00
add more api
This commit is contained in:
@@ -3,10 +3,10 @@ project(fumidb_test VERSION 1.0)
|
||||
|
||||
add_executable(binary_test binary_test.c)
|
||||
add_executable(page_test page_test.c ../src/page.c ../src/file.c)
|
||||
#add_executable(types_test types_test.c ../src/types.c ../src/types/int8.c ../src/types/int16.c ../src/page.c ../src/file.c)
|
||||
add_executable(types_test types_test.c ../src/types.c ../src/types/int8.c ../src/types/int16.c ../src/page.c ../src/file.c)
|
||||
add_executable(table_test table_test.c ../src/table.c ../src/types.c ../src/types/int8.c ../src/types/int16.c ../src/page.c ../src/file.c)
|
||||
|
||||
add_test(test_binary binary_test COMMAND binary_test)
|
||||
add_test(test_page page_test COMMAND page_test)
|
||||
#add_test(test_types types_test COMMAND types_test)
|
||||
add_test(test_types types_test COMMAND types_test)
|
||||
add_test(test_table table_test COMMAND table_test)
|
||||
|
||||
@@ -51,5 +51,6 @@ int main() {
|
||||
return 4;
|
||||
}
|
||||
if(strcmp(get_table_name(table, namebuf), "test_table")) return 5;
|
||||
if(get_index_ptr(table, 0) != 0x100) return 6;
|
||||
close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user