Files
dat-thang/tests/test_tree.c
T
divorce b735900f2e 0.0.002
ddat interop with dat js
cable interop with cabal js
ddat's frontend = dat-thang
cable fe = cable-thang
dillo support based on cel's dillo-dat
bootstrap node
xplatform support

Signed-off-by: divo <418@cryspace.space>
2026-10-19 00:17:02 -04:00

5 lines
404 B
C

#include "sleep.h"
#include <assert.h>
#include <stdint.h>
int main(void){uint64_t roots[8],v;assert(sleep_tree_index(0,0)==0);assert(sleep_tree_index(1,0)==1);assert(sleep_tree_index(0,1)==2);assert(sleep_tree_parent(0)==1);assert(sleep_tree_left_child(1,&v)==0&&v==0);assert(sleep_tree_right_child(1,&v)==0&&v==2);assert(sleep_tree_full_roots(6,roots,8)==2);assert(roots[0]==1&&roots[1]==4);return 0;}