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>
5 lines
404 B
C
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;}
|