Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 20, 2025
1 parent 27dd3e6 commit 82e5f6c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions of/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ main = do
, ccOut pwd "math/numbertheory/radical.🍎" "ii" sys "30"
, ccOut pwd "math/numbertheory/factors.🍏" "ia" sys "1 3\n2,3,5\n"
, ccOut pwd "test/data/primeMask.🍎" "ib" sys "1 10\n1,1,0,1,0,1,0,0,0,1\n"
, ccOut pwd "test/data/any.🍏" "ab" sys "1\n"
, ccOut pwd "test/examples/regress.🍎" "aaf2" sys "-0.950000 1.000000"
]
where
Expand Down
1 change: 1 addition & 0 deletions test/data/any.🍏
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
λbs. (∨)/ₒ #f bs :: bool
14 changes: 14 additions & 0 deletions test/harness/ab_harness.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include <stdio.h>
#include<string.h>
#include <stdlib.h>

#include"../../include/apple_abi.h"

extern B ab(U);

int main(int argc, char *argv[]) {
B xs[] = {false,false,true,false,true,false};
V(6,xs,x);
printf("%d\n", ab(x));
free(x);
}

0 comments on commit 82e5f6c

Please sign in to comment.