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:
12
tests/binary_test.c
Normal file
12
tests/binary_test.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user