summaryrefslogtreecommitdiff
path: root/fig-web/main/Main.hs
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-12-02 14:26:48 -0500
committerLLLL Colonq <llll@colonq>2025-12-02 14:26:48 -0500
commit2a21b457d71e8cace0db0e3b4913234d25f38aec (patch)
tree7c193c7dba2e4884152226cd2284f27ad53a8aad /fig-web/main/Main.hs
parent4086896975a3b041da4cf3be4cd959ce92f8aade (diff)
Advent
Diffstat (limited to 'fig-web/main/Main.hs')
-rw-r--r--fig-web/main/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/fig-web/main/Main.hs b/fig-web/main/Main.hs
index b1cc006..a3c798a 100644
--- a/fig-web/main/Main.hs
+++ b/fig-web/main/Main.hs
@@ -60,6 +60,7 @@ main = do
Secure o -> Secure.server o cfg (opts.busHost, opts.busPort)
TestFFI -> do
log "testing FFI"
- res <- FFI.checkAnswer "(lambda (d) (define (loop) (loop)) (loop) (string-length d))"
- "hello computer"
+ res <- FFI.checkAnswer "(lambda (d e) (equal? d e))" "hello computer" "hello computer"
log $ "result: " <> tshow res
+ inpa <- FFI.genInputAnswer "(lambda (x) (cons x x))" "hello computer"
+ log $ "input/answer: " <> tshow inpa