add test-afl-racket.rkt

This commit is contained in:
AlexKnauth 2014-08-24 21:28:48 -04:00
parent ad2483e4e5
commit 4ea66308a3

View File

@ -0,0 +1,17 @@
#lang afl racket/base
(module+ test
(require rackunit)
(check-equal? (map (+ % 1) '(1 2 3))
'(2 3 4))
(check-equal? (map (+ % %2) '(1 2 3) '(1 2 3))
'(2 4 6))
(check-equal? ((apply list* % %&) 1 '(2 3))
'(1 2 3))
(check-equal? ((* 1/2 %#:m (* %#:v %#:v)) #:m 2 #:v 1)
1)
(check-equal? (let ([x ("I am x")])
(#λx))
"I am x")
(check-equal? ((begin (set! % "%") %1) "%1")
"%")
)