1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-10 13:10:37 +08:00

init source code

This commit is contained in:
源文雨
2022-04-26 16:58:05 +08:00
parent ea4ca63b49
commit b408094d1c
5 changed files with 103 additions and 0 deletions

12
tests/binary_test.c Normal file
View File

@@ -0,0 +1,12 @@
#include "../src/binary.h"
int main() {
char buf[8];
putle16(buf, 1);
if(buf[0] != 1) return 1;
putle32(buf, 2);
if(buf[0] != 2) return 2;
putle64(buf, 3);
if(buf[0] != 3) return 3;
return 0;
}